Skip to content

Commit

Permalink
add new sheets to order list
Browse files Browse the repository at this point in the history
  • Loading branch information
KorayKirli committed Dec 7, 2017
1 parent 77cd336 commit 9b2f3be
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
5 changes: 2 additions & 3 deletions README.md
Expand Up @@ -66,7 +66,6 @@ If you prefer to use a different file location or a different key name (not "def
## Generating data submission forms
To create the data submission xls forms, you can use `get_field_info`.
It will accept the following parameters:

--type use for each sheet that you want to add to the excel workbook
--descriptions adds the descriptions in the second line (by default True)
--enums adds the enum options in the third line (by default True)
Expand All @@ -84,13 +83,13 @@ get_field_info --type Biosample --comments --outfile biosample.xls
```

Complete list of sheets:
Example list of sheets:
~~~~
get_field_info --type Publication --type Document --type Vendor --type Protocol --type BiosampleCellCulture --type Biosource --type Enzyme --type Construct --type TreatmentChemical --type TreatmentRnai --type Modification --type Biosample --type FileFastq --type IndividualHuman --type IndividualMouse --type ExperimentHiC --type ExperimentSetReplicate --type ExperimentCaptureC --type Target --type GenomicRegion --type ExperimentSet --type Image --comments --outfile AllItems.xls
~~~~

Complete list of sheets: (using python scripts)
Example list of sheets: (using python scripts)
~~~~
python3 -m wranglertools.get_field_info --type Publication --type Document --type Vendor --type Protocol --type BiosampleCellCulture --type Biosource --type Enzyme --type Construct --type TreatmentChemical --type TreatmentRnai --type Modification --type Biosample --type FileFastq --type IndividualHuman --type IndividualMouse --type ExperimentHiC --type ExperimentCaptureC --type Target --type GenomicRegion --type ExperimentSet --type ExperimentSetReplicate --type Image --comments --outfile AllItems.xls
Expand Down
16 changes: 12 additions & 4 deletions wranglertools/fdnDCIC.py
Expand Up @@ -288,9 +288,12 @@ def md5(path):
"Vendor", "Enzyme", "Biosource", "Construct", "TreatmentRnai", "TreatmentChemical",
"GenomicRegion", "Target", "Modification", "Image", "BiosampleCellCulture", "Biosample",
"FileFastq", "FileFasta", "FileProcessed", "FileReference", "FileCalibration",
"FileSet", "FileSetCalibration", "FileMicroscopy", "ImagingPath", "ExperimentMic",
"FileSet", "FileSetCalibration", "MicroscopeSettingD1", "MicroscopeSettingD2",
"MicroscopeSettingA1", "MicroscopeSettingA2", "FileMicroscopy", "FileSetMicroscopeQc",
"ImagingPath", "ExperimentMic",
"ExperimentHiC", "ExperimentCaptureC", "ExperimentRepliseq", "ExperimentAtacseq", "ExperimentChiapet",
"ExperimentDamid", "ExperimentSeq", "ExperimentSet", "ExperimentSetReplicate", 'WorkflowRunSbg']
"ExperimentDamid", "ExperimentSeq", "ExperimentSet", "ExperimentSetReplicate", 'WorkflowRunSbg',
'WorkflowRunAwsem']

# Most fields are covered by "exclude_from:submit4dn" tag for removal
# do_not_use list can be populated if there are additional fields that nneds to be taken out
Expand Down Expand Up @@ -374,8 +377,13 @@ def switch_fields(list_names, sheet):
# if object name is in the following list, fetch all current/released items and add to xls
# if experiment is ever added to this list, experiment set related fields might cause some problems
fetch_items = {
"Document": "document", "Protocol": "protocol", "Enzyme": "enzyme", "Biosource": "biosource",
"Publication": "publication", "Vendor": "vendor"}
"Document": "document",
"Protocol": "protocol",
"Enzyme": "enzyme",
"Biosource": "biosource",
"Publication": "publication",
"Vendor": "vendor"
}


def sort_item_list(item_list, item_id, field):
Expand Down

0 comments on commit 9b2f3be

Please sign in to comment.