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

WISH: FastqDataFile and BamDataFile report on read lengths #13

Open
HenrikBengtsson opened this issue Apr 30, 2015 · 1 comment
Open

Comments

@HenrikBengtsson
Copy link
Owner

It would be convenient if the FastqDataFile and/or BamDataFile classes could report on read length. The question is, are all reads always of the same lengths? If not, then one needs to report on the first (few) reads.

@HenrikBengtsson
Copy link
Owner Author

So, FastqDataFile already does this, e.g.

> fq
FastqDataFile:
Name: reads_2
Tags:
Full name: reads_2
Pathname: fastqData/TopHat-example/LambdaPhage/reads_2.fq
File size: 17.29 kB (17703 bytes)
RAM: 0.00 MB
Is paired: FALSE
Number of sequences: 100
Common width of sequences: 75

However, one need to make sure to "force" parsing of the file first (e.g. using nbrOfSeqs(fq)), otherwise all values are NA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant