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

Prepend chromosomes with chr to match the SAM/BAM files. #132

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

roryk
Copy link

@roryk roryk commented Apr 24, 2015

Hi Robin,

The demo was failing because the chromosome names didn't match up with the alignment files. This fixes that. Hope you are well.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 74.74% when pulling c876323 on roryk:master into b8c3762 on robinandeer:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 74.82% when pulling 09f4504 on roryk:master into b8c3762 on robinandeer:master.

@roryk
Copy link
Author

roryk commented Apr 24, 2015

Sorry, I'm terrible and added a separate commit on to this cosmetic one. If you like one and not the other feel free to ignore one of them.

Y 9196964 9197108 Y-9196963-9197108 0 + Y-CCDS59533.1 Y-TSPY8 0.0 0.0
Y 9197216 9197296 Y-9197215-9197296 0 + Y-CCDS59533.1 Y-TSPY8 0.0 0.0
Y 9197992 9198013 Y-9197991-9198013 0 + Y-CCDS59533.1 Y-TSPY8 0.0 0.0
chr#{"group_id": null, "sample_id": "tiriwiro", "coverage_source": "/Users/robinandeer/Projects/clinical-genomics/qxt/bam/Sample_E2-QXT-prep2/sorted.bam", "cutoff": 10, "extension": 0}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This leading "chr" must be a mistake, right? 😃

@robinandeer
Copy link
Contributor

Thanks a lot @roryk - good catch!

I'll be happy to test the PR locally after you've made the few suggested changes

If you have time you could also update the __init__.py imports to make it easier to import the new apply_bed_stream.

apply_bed_stream takes a function and a BED stream
applies the function to every interval in the BED stream

Also fixes the test BED file not having chr prepended
to the chromosome.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.08%) to 74.82% when pulling 808a533 on roryk:master into 80d377f on robinandeer:master.

@robinandeer
Copy link
Contributor

Superb Rory!

Very nice touch with the rebase - I should keep learning more about how to do that

And I wonder what it say of me if I'm blushing a little reading you last comment? 😅 Thanks!

@robinandeer robinandeer added this to the 2.4.0 milestone Apr 29, 2015
@robinandeer robinandeer removed this from the 2.4.0 milestone Nov 9, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants