Skip to content

Fix maf parsing#34

Merged
iskandr merged 13 commits intomasterfrom
fix_maf_parsing
Mar 11, 2015
Merged

Fix maf parsing#34
iskandr merged 13 commits intomasterfrom
fix_maf_parsing

Conversation

@iskandr
Copy link
Copy Markdown
Contributor

@iskandr iskandr commented Mar 8, 2015

This pull request started with just fixing the parsing logic in maf.py to deal with some of the edge cases of TCGA's various MAF files (spaces in values, non-standard capitalization of columns). In the process of adding unit tests I realized I wasn't handling StopLoss variants at all in coding_effect.py, which may have been responsible for some errors I've seen while parsing larger germline VCF files.

The branch eventually came to encompass a refactoring of Variant, addition of Intragenic & Intragenic effects which don't require transcripts, and removal of VariantEffectCollection (in favor of a simple list of variants and more effect-related helpers on the Variant itself).

One of the MAF effect tests still doesn't work, but I guess there's a lot to start reviewing that probably won't be affected by remaining changes.

Review on Reviewable

Comment thread varcode/variant.py
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

At first glance it's not clear why we want this method in addition to effects() that returns a VariantEffectCollection. Maybe consider getting rid of VariantEffectCollection, moving its methods into Variant, and having variant.effects() return the dict that is currently returned by transcript_effect_dict?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

VariantEffectCollection is gone on this branch, and all of its methods and properties (like this one) have migrated onto VariantCollection.

iskandr added a commit that referenced this pull request Mar 11, 2015
@iskandr iskandr merged commit 6dd953d into master Mar 11, 2015
@iskandr iskandr deleted the fix_maf_parsing branch March 11, 2015 01:35
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.

2 participants