Skip to content

Commit

Permalink
add params script
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Jun 7, 2021
1 parent a33a803 commit 2d25fd8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions scripts/params
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#! /usr/bin/env bash

if [[ -z "$1" ]]; then
cat <<EOF
Print the usage information for LepMap3/LepAnchor modules.
Should be used in main project directory.
Module names are case-sensitive.
[usage]: params <module name>
[example]: scripts/params OrderMarkers2
LepMap3 modules:
- ParentCall2
- Filtering2
- SeparateChromosomes2
- JoinSingles2All
- OrderMarkers2
LepAnchor modules:
- Map2Bed
- CleanMap
- PlaceAndOrientContigs
EOF
exit 1
fi

if [[ $1 == "Map2Bed" || $1 == "CleanMap" || $1 == "PlaceAndOrientContigs" ]]; then
java -cp software/LepAnchor $1 2>&1
else
java -cp software/LepMap3 $1 2>&1 | tail -n +2
fi

0 comments on commit 2d25fd8

Please sign in to comment.