-
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
Merged
andrewkern
merged 13 commits into
popsim-consortium:main
from
andrewkern:ensembl_update_take2
Jan 17, 2025
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
4e03aed
changes to maintenance script / ensembl push
andrewkern 2fb9499
update ensembl tests
andrewkern 71751a0
added assembly attributes to API; lots of associated changes
andrewkern 1a9b881
added test template stubs for new attributes
andrewkern d120909
Update maintenance/main.py
andrewkern 18165af
Update species.py
andrewkern 35b8c71
Peter's edits to main maintenance
andrewkern c2f14c8
clean up of chrom definitions
andrewkern 44bcae9
more helpful variable descriptions in API
andrewkern 05d32eb
removing chromosomes broke recombination data in BosTau
andrewkern 36e9395
peter's edits 2
andrewkern 69c37bd
peter's edit on ApiMel
andrewkern 5753a8a
Update maintenance/main.py
andrewkern File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,24 @@ | |
"assembly_accession": "GCA_003254395.2", | ||
"assembly_name": "Amel_HAv3.1", | ||
"chromosomes": { | ||
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. |
||
"CM009931.2": {"length": 27754200, "synonyms": ["NC_037638.1"]}, | ||
"CM009932.2": {"length": 16089512, "synonyms": ["NC_037639.1"]}, | ||
"CM009933.2": {"length": 13619445, "synonyms": ["NC_037640.1"]}, | ||
"CM009934.2": {"length": 13404451, "synonyms": ["NC_037641.1"]}, | ||
"CM009935.2": {"length": 13896941, "synonyms": ["NC_037642.1"]}, | ||
"CM009936.2": {"length": 17789102, "synonyms": ["NC_037643.1"]}, | ||
"CM009937.2": {"length": 14198698, "synonyms": ["NC_037644.1"]}, | ||
"CM009938.2": {"length": 12717210, "synonyms": ["NC_037645.1"]}, | ||
"CM009939.2": {"length": 12354651, "synonyms": ["NC_037646.1"]}, | ||
"CM009940.2": {"length": 12360052, "synonyms": ["NC_037647.1"]}, | ||
"CM009941.2": {"length": 16352600, "synonyms": ["NC_037648.1"]}, | ||
"CM009942.2": {"length": 11514234, "synonyms": ["NC_037649.1"]}, | ||
"CM009943.2": {"length": 11279722, "synonyms": ["NC_037650.1"]}, | ||
"CM009944.2": {"length": 10670842, "synonyms": ["NC_037651.1"]}, | ||
"CM009945.2": {"length": 9534514, "synonyms": ["NC_037652.1"]}, | ||
"CM009946.2": {"length": 7238532, "synonyms": ["NC_037653.1"]}, | ||
"CM009947.2": {"length": 16343, "synonyms": ["NC_001566.1", "MT"]}, | ||
petrelharp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"CM009931.2": {"length": 27754200, "synonyms": []}, | ||
"CM009932.2": {"length": 16089512, "synonyms": []}, | ||
"CM009933.2": {"length": 13619445, "synonyms": []}, | ||
"CM009934.2": {"length": 13404451, "synonyms": []}, | ||
"CM009935.2": {"length": 13896941, "synonyms": []}, | ||
"CM009936.2": {"length": 17789102, "synonyms": []}, | ||
"CM009937.2": {"length": 14198698, "synonyms": []}, | ||
"CM009938.2": {"length": 12717210, "synonyms": []}, | ||
"CM009939.2": {"length": 12354651, "synonyms": []}, | ||
"CM009940.2": {"length": 12360052, "synonyms": []}, | ||
"CM009941.2": {"length": 16352600, "synonyms": []}, | ||
"CM009942.2": {"length": 11514234, "synonyms": []}, | ||
"CM009943.2": {"length": 11279722, "synonyms": []}, | ||
"CM009944.2": {"length": 10670842, "synonyms": []}, | ||
"CM009945.2": {"length": 9534514, "synonyms": []}, | ||
"CM009946.2": {"length": 7238532, "synonyms": []}, | ||
"CM009947.2": {"length": 16343, "synonyms": []}, | ||
}, | ||
"assembly_source": "ensembl", | ||
"assembly_build_version": "113", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,40 @@ | ||
# File autogenerated from Ensembl REST API. Do not edit. | ||
data = { | ||
"assembly_accession": "GCA_002263795.2", | ||
"assembly_name": "ARS-UCD1.2", | ||
"assembly_accession": "GCA_002263795.3", | ||
"assembly_name": "ARS-UCD1.3", | ||
"chromosomes": { | ||
"1": {"length": 158534110, "synonyms": []}, | ||
"2": {"length": 136231102, "synonyms": []}, | ||
"3": {"length": 121005158, "synonyms": []}, | ||
"4": {"length": 120000601, "synonyms": []}, | ||
"5": {"length": 120089316, "synonyms": []}, | ||
"6": {"length": 117806340, "synonyms": []}, | ||
"7": {"length": 110682743, "synonyms": []}, | ||
"8": {"length": 113319770, "synonyms": []}, | ||
"9": {"length": 105454467, "synonyms": []}, | ||
"10": {"length": 103308737, "synonyms": []}, | ||
"11": {"length": 106982474, "synonyms": []}, | ||
"12": {"length": 87216183, "synonyms": []}, | ||
"13": {"length": 83472345, "synonyms": []}, | ||
"14": {"length": 82403003, "synonyms": []}, | ||
"15": {"length": 85007780, "synonyms": []}, | ||
"16": {"length": 81013979, "synonyms": []}, | ||
"17": {"length": 73167244, "synonyms": []}, | ||
"18": {"length": 65820629, "synonyms": []}, | ||
"19": {"length": 63449741, "synonyms": []}, | ||
"20": {"length": 71974595, "synonyms": []}, | ||
"21": {"length": 69862954, "synonyms": []}, | ||
"22": {"length": 60773035, "synonyms": []}, | ||
"23": {"length": 52498615, "synonyms": []}, | ||
"24": {"length": 62317253, "synonyms": []}, | ||
"25": {"length": 42350435, "synonyms": []}, | ||
"26": {"length": 51992305, "synonyms": []}, | ||
"27": {"length": 45612108, "synonyms": []}, | ||
"28": {"length": 45940150, "synonyms": []}, | ||
"29": {"length": 51098607, "synonyms": []}, | ||
"X": {"length": 139009144, "synonyms": []}, | ||
"1": {"length": 158534110, "synonyms": ["chr1"]}, | ||
"2": {"length": 136231102, "synonyms": ["chr2"]}, | ||
"3": {"length": 121005158, "synonyms": ["chr3"]}, | ||
"4": {"length": 120000601, "synonyms": ["chr4"]}, | ||
"5": {"length": 120089316, "synonyms": ["chr5"]}, | ||
"6": {"length": 117806340, "synonyms": ["chr6"]}, | ||
"7": {"length": 110682743, "synonyms": ["chr7"]}, | ||
"8": {"length": 113319770, "synonyms": ["chr8"]}, | ||
"9": {"length": 105454467, "synonyms": ["chr9"]}, | ||
"10": {"length": 103308737, "synonyms": ["chr10"]}, | ||
"11": {"length": 106982474, "synonyms": ["chr11"]}, | ||
"12": {"length": 87216183, "synonyms": ["chr12"]}, | ||
"13": {"length": 83472345, "synonyms": ["chr13"]}, | ||
"14": {"length": 82403003, "synonyms": ["chr14"]}, | ||
"15": {"length": 85007780, "synonyms": ["chr15"]}, | ||
"16": {"length": 81013979, "synonyms": ["chr16"]}, | ||
"17": {"length": 73167244, "synonyms": ["chr17"]}, | ||
"18": {"length": 65820629, "synonyms": ["chr18"]}, | ||
"19": {"length": 63449741, "synonyms": ["chr19"]}, | ||
"20": {"length": 71974595, "synonyms": ["chr20"]}, | ||
"21": {"length": 69862954, "synonyms": ["chr21"]}, | ||
"22": {"length": 60773035, "synonyms": ["chr22"]}, | ||
"23": {"length": 52498615, "synonyms": ["chr23"]}, | ||
"24": {"length": 62317253, "synonyms": ["chr24"]}, | ||
"25": {"length": 42350435, "synonyms": ["chr25"]}, | ||
"26": {"length": 51992305, "synonyms": ["chr26"]}, | ||
"27": {"length": 45612108, "synonyms": ["chr27"]}, | ||
"28": {"length": 45940150, "synonyms": ["chr28"]}, | ||
"29": {"length": 51098607, "synonyms": ["chr29"]}, | ||
"X": {"length": 139009144, "synonyms": ["chrX"]}, | ||
"MT": {"length": 16338, "synonyms": []}, | ||
}, | ||
"assembly_source": "ensembl", | ||
"assembly_build_version": "113", | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?