Skip to content

Commit

Permalink
Fix #35 - markerset-based namespace for features
Browse files Browse the repository at this point in the history
  • Loading branch information
rsuchecki committed Mar 21, 2020
1 parent 6c288e4 commit 3ede5d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/paf2pretzel.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ import static picocli.CommandLine.*
@Option(names = ["--parent"], description = ["Parent dataset name"])
@Field private String parent

@Option(names = ["--base-name"], description = ["Basename used for dataset name/namespace"])
@Option(names = ["--base-name"], description = ["Basename used for dataset name"])
@Field private String basename

@Option(names = ["--namespace"], description = ["String used for dataset namespace"])
@Field private String namespace

@Option(names = ["--short-name"], description = ["Short display name"])
@Field private String shortName

Expand Down Expand Up @@ -83,7 +86,7 @@ annotation.meta = [:]

annotation.'public' = !makePrivate
annotation.name = "${basename}_${seqType}"
annotation.namespace = basename
annotation.namespace = namespace
annotation.parent = parent
annotation.meta.shortName = shortName
if(alignTool != null && alignParams != null) {
Expand Down
1 change: 1 addition & 0 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ process generateFeaturesFromSeqAlignmentsJSON {
--parent ${genome} \
--sequence-type ${meta.seqs.seqtype} \
--base-name ${tag} \
--namespace ${meta.seqs.name} \
--short-name ${meta.seqs.name} \
--align-tool ${meta.align.tool} \
--align-params "${meta.align.params}" \
Expand Down

0 comments on commit 3ede5d4

Please sign in to comment.