-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export URL arg support, new section names, blood 4digit HS name change (
#6) * Add support for downloading sheets using export URL args * New SITC and HS naming changes (section names, blood) * Bump version
- Loading branch information
1 parent
d726201
commit a2d8c3c
Showing
14 changed files
with
117 additions
and
73 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
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,9 +1,22 @@ | ||
from google_docs_download import get_classification_from_gdrive | ||
|
||
hierarchy, names = get_classification_from_gdrive( | ||
"https://docs.google.com/spreadsheets/d/1y6UUixlfbW0jLnUtKycHF1ICUaD-kROQIvscwCGFzzE/edit#gid=0" | ||
) | ||
hierarchy.to_csv( | ||
"./in/HS92_Atlas_Hierarchy.tsv", sep="\t", index=False, encoding="utf-8" | ||
) | ||
names.to_csv("./in/HS92_Atlas_Names.tsv", sep="\t", index=False, encoding="utf-8") | ||
import sys | ||
|
||
sys.path.append("../../..") | ||
from google_docs_download import download_sheet | ||
|
||
if __name__ == "__main__": | ||
|
||
sheets = [ | ||
{ | ||
"key": "1xPMiNhKf8DKMMU3ntUADQsouCWOLM2-2lY_2o58gSIQ", | ||
"sheet_id": "0", | ||
"output_path": "./in/HS92_Atlas_Hierarchy", | ||
}, | ||
{ | ||
"key": "1xPMiNhKf8DKMMU3ntUADQsouCWOLM2-2lY_2o58gSIQ", | ||
"sheet_id": "1029116973", | ||
"output_path": "./in/HS92_Atlas_Names", | ||
}, | ||
] | ||
|
||
for sheet in sheets: | ||
download_sheet(**sheet) |
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
Binary file not shown.
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,10 +1,22 @@ | ||
from google_docs_download import get_classification_from_gdrive | ||
|
||
# SITC Rev2 | ||
hierarchy, names = get_classification_from_gdrive( | ||
"https://docs.google.com/spreadsheets/d/1pgVamRALdpc7IlmzkvJrLk4Hkm4H4wvNyoIycQ6wr_E/edit#gid=1207195644" | ||
) | ||
hierarchy.to_csv( | ||
"./in/SITC_Rev2_Hierarchy.tsv", sep="\t", index=False, encoding="utf-8" | ||
) | ||
names.to_csv("./in/SITC_Rev2_Names.tsv", sep="\t", index=False, encoding="utf-8") | ||
import sys | ||
|
||
sys.path.append("../../..") | ||
from google_docs_download import download_sheet | ||
|
||
if __name__ == "__main__": | ||
|
||
sheets = [ | ||
{ | ||
"key": "16Wpxs5SL4s1YUus29lqCkbgC2acXQ19iXZwWEPvvcpM", | ||
"sheet_id": "0", | ||
"output_path": "./in/SITC_Rev2_Hierarchy", | ||
}, | ||
{ | ||
"key": "16Wpxs5SL4s1YUus29lqCkbgC2acXQ19iXZwWEPvvcpM", | ||
"sheet_id": "1207195644", | ||
"output_path": "./in/SITC_Rev2_Names", | ||
}, | ||
] | ||
|
||
for sheet in sheets: | ||
download_sheet(**sheet) |
Oops, something went wrong.