Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty 3'UTR APA RE table from PASEXP_3UTR function #16

Open
faricazjj opened this issue Sep 19, 2022 · 0 comments
Open

Empty 3'UTR APA RE table from PASEXP_3UTR function #16

faricazjj opened this issue Sep 19, 2022 · 0 comments

Comments

@faricazjj
Copy link

Hi Ruijia,

I am running PASEXP_3UTR to get the relative expression of APA sites in 3UTR with this bam file and this gtf file
Screen Shot 2022-09-19 at 5 50 23 PM

The code I used to generate the above outputs is below:

#----------------------Build the PAS reference regions----------------------
PASREFraw = PAS2GEF(GTFfile, AnnoMethod="V2")
refUTRraw = PASREFraw$refUTRraw
dfIPAraw = PASREFraw$dfIPA
dfLEraw = PASREFraw$dfLE
PASREF = REF4PAS(refUTRraw,dfIPAraw,dfLEraw)
# reference region used for 3'UTR APA analysis
UTRdbraw = PASREF$UTRdbraw
# dfIPA and dfLE are needed in intronic APA analysis
dfIPA = PASREF$dfIPA
dfLE = PASREF$dfLE

#----------Calculation of relative expression of 3'UTR APA and IPA----------
# calculate relative expression of 3' UTR APA
UTR_APA_OUT = PASEXP_3UTR(UTRdbraw, flsall, Strandtype = "NONE")

# ensure that coordinates are numeric
dfIPA$Pos = as.numeric(as.character(dfIPA$Pos))
dfIPA$upstreamSS = as.numeric(as.character(dfIPA$upstreamSS))
dfIPA$downstreamSS = as.numeric(as.character(dfIPA$downstreamSS))
dfLE$LEstart = as.numeric(as.character(dfLE$LEstart))
dfLE$TES = as.numeric(as.character(dfLE$TES))

# calculate relative expression of IPA
IPA_OUT = PASEXP_IPA(dfIPA, dfLE, flsall, Strandtype = opt$strandtype, nts = 1)
print("Relative expression of 3'UTR APA")
print(UTR_APA_OUT)
print("Relative expression of IPA")
print(IPA_OUT)

where flsall is a data frame with the path to the input bam file

                           srsf3_replicate1_1
"../../tests/test_data/siSrsf3_R1_2genes.bam"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant