Skip to content

Commit

Permalink
Increase memory for trait mapping; remove --unattended flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tskir committed Oct 11, 2019
1 parent f145fd8 commit da7d188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions bin/trait_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def launch():

main.main(parser.input_filepath, parser.output_mappings_filepath,
parser.output_curation_filepath, parser.filters, parser.zooma_host,
parser.oxo_target_list, parser.oxo_distance, parser.unattended)
parser.oxo_target_list, parser.oxo_distance)


class ArgParser:
Expand Down Expand Up @@ -39,8 +39,6 @@ def __init__(self, argv):
help="target ontologies to use with OxO")
parser.add_argument("-d", dest="oxo_distance", default=3,
help="distance to use to query OxO.")
parser.add_argument('-u', dest="unattended", action='store_true',
help="unattended launch, hide ETA estimates")

args = parser.parse_args(args=argv[1:])

Expand All @@ -55,7 +53,6 @@ def __init__(self, argv):
self.zooma_host = args.zooma_host
self.oxo_target_list = [target.strip() for target in args.oxo_target_list.split(",")]
self.oxo_distance = args.oxo_distance
self.unattended = args.unattended


if __name__ == '__main__':
Expand Down
6 changes: 3 additions & 3 deletions docs/submit-opentargets-batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ A new Java package will be generated in the directory `clinvar-xml-parser/src/ma
Here we transform ClinVar's XML file into a JSON file which can be parsed by the downstream tools, using an XML parser which we (if necessary) updated during the previous step.

```bash
cd ${CODE_ROOT} && ${BSUB_CMDLINE} -M 4G \
cd ${CODE_ROOT} && ${BSUB_CMDLINE} -n 8 -M 4G \
-o ${BATCH_ROOT}/logs/convert_clinvar_files.out \
-e ${BATCH_ROOT}/logs/convert_clinvar_files.err \
java -jar ${CODE_ROOT}/clinvar-xml-parser/target/clinvar-parser-1.0-SNAPSHOT-jar-with-dependencies.jar \
Expand Down Expand Up @@ -168,10 +168,10 @@ The TSV file eventually returned by OpenTargets has these columns:
See information about the trait mapping pipeline [here](trait-mapping-pipeline.md). It is run with the following command:

```bash
cd ${CODE_ROOT} && ${BSUB_CMDLINE} \
cd ${CODE_ROOT} && ${BSUB_CMDLINE} -M 4G \
-o ${BATCH_ROOT}/logs/trait_mapping.out \
-e ${BATCH_ROOT}/logs/trait_mapping.err \
python bin/trait_mapping.py -u \
python bin/trait_mapping.py \
-i ${BATCH_ROOT}/clinvar/clinvar.filtered.json.gz \
-o ${BATCH_ROOT}/trait_mapping/automated_trait_mappings.tsv \
-c ${BATCH_ROOT}/trait_mapping/traits_requiring_curation.tsv
Expand Down

0 comments on commit da7d188

Please sign in to comment.