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

Load gtf from local directory #3

Open
lmanchon opened this issue Oct 18, 2019 · 2 comments
Open

Load gtf from local directory #3

lmanchon opened this issue Oct 18, 2019 · 2 comments

Comments

@lmanchon
Copy link

--Hi,

is it possible to add a function in SCANVISannotation.R file to load annotation from local directory ?
Currently, it only uses an ftp connection to download a GTF file.

thank you --

@agiusp
Copy link
Contributor

agiusp commented Oct 18, 2019

Sure thing, that's an easy adjustment - please try substituting lines 1-15 in the SCANVISannotation script with the lines below:

###################################
#INPUT: gtf.dir=dir where you have your gtf file

gtf.file=name of your gtf file

###################################
SCANVISannotation.provide_gtf
function (gtf.dir,gtf.file)
{
gencode <- rtracklayer::import.gff(file.path(gtf.dir, gtf.file), version = "2")

@lmanchon
Copy link
Author

--
certainly, it's a way to do it and that's what I did.
It was also a suggestion I made to add this function to the package. This would avoid transfer by ftp.

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

2 participants