Skip to content

Commit

Permalink
Merge pull request #2210 from pvanheus/maskFastaBedtoolsFix
Browse files Browse the repository at this point in the history
bedtools maskfasta: fullheader to fullHeader
  • Loading branch information
nsoranzo authored Dec 17, 2018
2 parents 2833624 + 76c057a commit 0a8cabc
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
13 changes: 10 additions & 3 deletions tools/bedtools/maskFastaBed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<param name="mc" type="text" value="N"
label="Replace masking character"
help="That is, instead of masking with Ns, use another character. (-mc)" />
<param argument="-fullheader" type="boolean" truevalue="-fullheader" falsevalue=""
<param argument="-fullHeader" name="fullheader" type="boolean" truevalue="-fullHeader" falsevalue=""
label="Use full fasta header."
help="By default, only the word before the first space or tab is used"/>
</inputs>
Expand All @@ -37,13 +37,20 @@
<param name="input" value="nucBed1.bed" ftype="bed" />
<param name="fasta" value="nucBed1.fasta" ftype="fasta" />
<param name="soft" value="False" />
<output name="output" file="maskFastaBed_result1.bed" ftype="fasta" />
<output name="output" file="maskFastaBed_result1.fasta" ftype="fasta" />
</test>
<test>
<param name="input" value="nucBed1.bed" ftype="bed" />
<param name="fasta" value="nucBed1.fasta" ftype="fasta" />
<param name="soft" value="True" />
<output name="output" file="maskFastaBed_result2.bed" ftype="fasta" />
<output name="output" file="maskFastaBed_result2.fasta" ftype="fasta" />
</test>
<test>
<param name="input" value="nucBed1.bed" ftype="bed" />
<param name="fasta" value="nucBed1.fasta" ftype="fasta" />
<param name="soft" value="True" />
<param name="fullheader" value="True" />
<output name="output" file="maskFastaBed_result3.fasta" ftype="fasta" />
</test>
</tests>
<help>
Expand Down
6 changes: 6 additions & 0 deletions tools/bedtools/test-data/maskFastaBed_result3.fasta
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
>chr1 description
GACTCATGATttcttacctattagtggttgaacatcgtgatatgtatgttgacggccataaggctgcttcttgttgtcga
tagaacttcatgtgcctgtaAAACAAGTACCAACCAGAACGTGAAAAAGCGTCCTGCGTGTAGCGTTTATGTTGGTTTCA
TGGTTTTGTCTAACTTTATCGCTTTACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCTTGTTTACGAATTAAATCGAAG
TGGACTGCTGGCGTTATAACGCCGAAGCGGTAAAAATTTTTATTTTTTTTCTCACTTCTGTTACTCCAGCTTCTTCGGCA
CCTGTGGCCTGTTGATTCTAAAGGTTAGTTTCTTCACGC
2 changes: 1 addition & 1 deletion tools/bedtools/test-data/nucBed1.fasta
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
>chr1
>chr1 description
GACTCATGATTTCTTACCTATTAGTGGTTGAACATCGTGATATGTATGTTGACGGCCATAAGGCTGCTTCTTGTTGTCGA
TAGAACTTCATGTGCCTGTAAAACAAGTACCAACCAGAACGTGAAAAAGCGTCCTGCGTGTAGCGTTTATGTTGGTTTCA
TGGTTTTGTCTAACTTTATCGCTTTACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCTTGTTTACGAATTAAATCGAAG
Expand Down

0 comments on commit 0a8cabc

Please sign in to comment.