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

Trailing Slash for samples #52

Closed
JFsanchezherrero opened this issue Jan 22, 2019 · 2 comments
Closed

Trailing Slash for samples #52

JFsanchezherrero opened this issue Jan 22, 2019 · 2 comments

Comments

@JFsanchezherrero
Copy link

Dear mirtop developers,
I have noticed a bug in the last version of mirtop (0.3.17) when dealing with back slashes.

I run mirtop gff conversion from sRNAbench data.

mirtop gff --sps hsa --hairpin ../sRNAtoolboxDB/libs/hairpin.fa --gtf ../hsa.gff3 --format srnabench -vd -o test1 isomiR_sRNAbenchtoolbox/sample_1/

I noticed that if I leave the backslash for the folder from sRNAbench data ( isomiR_sRNAbenchtoolbox/sample_1/), mirtop gff generates only a mirtop.gff file with no COLDATA information.

## mirGFF3. VERSION 0.9
## source-ontology: miRBasev22 doi:10.25504/fairsharing.hmgte8
## COLDATA:

But if I removed the backslash, (isomiR_sRNAbenchtoolbox/sample_1) mirtop gff would generate a mirtop.gff and a sample_1.gff file containing information in the COLDATA section

## mirGFF3. VERSION 0.9
## source-ontology: miRBasev22 doi:10.25504/fairsharing.hmgte8
## COLDATA: sample_1

I know it is not a big issue, but I took a while to discover why mirtop stats was failing after mirtop gff step.

Adding a back slash is a very common practice and some users might experience the same problem. Adding a simple if folder.endswith("/") clause should sort it out.

Thank you very much in advance,

Great code and program!
Greetings from IGTP

@lpantano
Copy link
Contributor

lpantano commented Jan 22, 2019 via email

@lpantano
Copy link
Contributor

Hi,

this is fixed in the devel version.

Thanks!

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