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

Using collect on countables from mapstats gives a funny result #138

Open
mettejoe opened this issue Sep 18, 2020 · 0 comments
Open

Using collect on countables from mapstats gives a funny result #138

mettejoe opened this issue Sep 18, 2020 · 0 comments

Comments

@mettejoe
Copy link

I have the following code

human_mapped = map(input, reference='hg19')
mapping_statistics = mapstats(human_mapped)
collect(mapping_statistics,
current=sample,
allneeded=samples,
ofile=QCDIR </> 'mapping_to_human.txt')

In the output file I get the following
sampe_1 sample_2 sample_3 sample_4 sample_5
total 39084 0 0 0 0
aligned 745 0 0 0 0
total 0 37051 0 0 0
aligned 0 4615 0 0 0
total 0 0 35219 0 0
aligned 0 0 13042 0 0
total 0 0 0 39876 0
aligned 0 0 0 805 0
total 0 0 0 0 34963
aligned 0 0 0 0 7
unique 744 4600 12994 805 7

I would have expected 3 rows (total, aligned, unique) instead of 11 rows.

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