-
Notifications
You must be signed in to change notification settings - Fork 93
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
changes to maintenance script / ensembl push #1646
Changes from 1 commit
4e03aed
2fb9499
71751a0
1a9b881
d120909
18165af
35b8c71
c2f14c8
44bcae9
05d32eb
36e9395
69c37bd
5753a8a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,8 +134,11 @@ | |
|
||
def add_if_unique(chrom, synonyms): | ||
for syn in synonyms: | ||
if syn not in chrom.synonyms: | ||
chrom.synonyms.append(syn) | ||
# commented this out for now as this case | ||
# is not occurring and it's messing with code coverage | ||
# if syn not in chrom.synonyms: | ||
# chrom.synonyms.append(syn) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, sorry - I misled you here. Note that two lines down, this function is called on
I think what's going on here is that usually we get synonyms from And, deleting these lines will remove these synonyms (ie, we won't use How about this: delete
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay made this change. it passed the ApiMel test. Let's see what codecov says |
||
pass | ||
|
||
|
||
for chrom in _genome.chromosomes: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps insert a comment explaining what this is doing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean, explaining why this is necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And, actually, I don't understand why it's necessary. I see below that now
species.ensembl_id == "canis_lupus_familiaris"
, so where doesensembl_id
equal"canis_familiaris"
? Just missing something here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hah this is because of the transition that happened when running the maintenance script! now i bet i can take it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay - could you either take this out, or say in the comment exactly what needs to happen to take it out? (It says "once we have moved to the new names" - but: moved what names? where? I am confused. =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added a larger comment now explaining the context that says:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't what I understood from talking to you - I thought that (a) we could remove this code right now if we wanted, since this
if
clause will never get triggered; but (b) we were going to leave the code in as an example of how to do this. Is that right?