wejlab / MetaScope

An R-based approach for preprocessing and aligning 16S, metagenomic, and metatranscriptomic data (PathoScope version 3.0)
GNU General Public License v3.0
16 stars 7 forks source link

Fixed an error in download_refseq.R and mk_subread_index.R #8

Closed rvarki closed 3 years ago

rvarki commented 3 years ago

An error occurred in download_refseq.R due to the viral kingdom being labeled Viruses in the NCBI taxonomy database whereas the virus folder on the ftp site is labeled as viral. I added an if statement to check whether the parent kingdom is viruses, and if true then the parent kingdom is changed to viral.

An error occurred in the return statement in mk_subread_index.R in the return statement due to it referencing a variable not defined in its scope. I fixed this by changing the variable to one that was defined in the statement's scope.