Associate EnsemblRelease with each Variant object#20
Conversation
…e_logic onto Variant, got rid of VariantAnnotator which is replaced by Variant.annotate()
There was a problem hiding this comment.
I'd suggest renaming this default_ensembl
There was a problem hiding this comment.
Can you say more about why that's a better name?
On Feb 20, 2015 11:35 AM, "timodonnell" notifications@github.com wrote:
In test/test_cosmic_mutations.py
#20 (comment):@@ -9,11 +10,11 @@
FrameShiftTruncation,
)-annot = VariantAnnotator(75)
+ensembl = EnsemblRelease(75)I'd suggest renaming this default_ensembl
—
Reply to this email directly or view it on GitHub
https://github.com/hammerlab/varcode/pull/20/files#r25082212.
There was a problem hiding this comment.
It's used only as a default parameter, right? Otherwise it looks to me like we're declaring that this module uses a particular ensembl release
There was a problem hiding this comment.
ah wait sorry, nvm. somehow didn't realize this was in a test method.
|
Well hope you don't mind the pile of comments, but besides all that, LGTM |
… from common to string_helpers, renamed transcript_mutation_effects to effect
…g class-associated priorities to the user
Associate EnsemblRelease with each Variant object
EnsemblRelease(this is mildly annoying/inelegant but simplifies a lot of other code)core_logicontoVariantVariantEffecttoAnnotationVariant.annotate()method, which replaces the need forVariantAnnotatorload_variantsfunction, now callload_vcforload_mafexplicitlyEnsemblRelease, it's now possible for variants from multiple references to be in the sameVariantCollection. I've seen a TCGA-derived MAF which mixes NCBI builds, so this might be desirable (it also gives meaning to taking the union of two variant collections aligned to different references). However, the potential for confusion here is suspicious.