-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from mlin865/pigColon
Pig colon
- Loading branch information
Showing
12 changed files
with
1,226 additions
and
432 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
Common resource for small intestine annotation terms. | ||
""" | ||
|
||
# convention: preferred name, preferred id, followed by any other ids and alternative names | ||
smallintestine_terms = [ | ||
( "duodenum", "UBERON:0002114", "FMA:7206", "ILX:0726125"), | ||
( "ileum", "UBERON:0002116", "FMA:7208", "ILX:0728151"), | ||
( "jejunum", "UBERON:0002115", "FMA:7207", "ILX:0724224"), | ||
( "small intestine", "UBERON:0002108", "FMA:7200", "ILX:0726770") | ||
] | ||
|
||
def get_smallintestine_term(name : str): | ||
""" | ||
Find term by matching name to any identifier held for a term. | ||
Raise exception if name not found. | ||
:return ( preferred name, preferred id ) | ||
""" | ||
for term in smallintestine_terms: | ||
if name in term: | ||
return ( term[0], term[1] ) | ||
raise NameError("Small intestine annotation term '" + name + "' not found.") |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
813 changes: 552 additions & 261 deletions
813
src/scaffoldmaker/meshtypes/meshtype_3d_colonsegment1.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.