# HG changeset patch
# User greg
# Date 1630689712 0
# Node ID e1cb13d6a82c393e897e0e16703e1c067509d47d
# Parent 7514b1e55372bb64df09170510debce7123c2d06
"planemo upload for repository https://github.com/gregvonkuster/galaxy_tools/tree/master/tools/sequence_analysis/vsnp/vsnp_sample_names commit f85ae0f073297ca7f5dfa22ae3a24f5fc2e6bad6"
diff -r 7514b1e55372 -r e1cb13d6a82c test-data/SRR14085881_forward
Binary file test-data/SRR14085881_forward has changed
diff -r 7514b1e55372 -r e1cb13d6a82c test-data/SRR14085881_reverse
Binary file test-data/SRR14085881_reverse has changed
diff -r 7514b1e55372 -r e1cb13d6a82c test-data/sample_names2.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/sample_names2.txt Fri Sep 03 17:21:52 2021 +0000
@@ -0,0 +1,1 @@
+SRR14085881
diff -r 7514b1e55372 -r e1cb13d6a82c vsnp_sample_names.xml
--- a/vsnp_sample_names.xml Wed Aug 04 12:46:56 2021 +0000
+++ b/vsnp_sample_names.xml Fri Sep 03 17:21:52 2021 +0000
@@ -4,16 +4,24 @@
macros.xml
0:
- #if $read1.is_of_type('fastqsanger.gz'):
+ #if $read1.is_of_type('fastqsanger.gz') and $sample_name.endswith('gz'):
## Something like my_sample.fastq.gz
#set sample_name = '.'.join($sample_name.split('.')[0:-2])
#else:
@@ -29,7 +37,7 @@
#set sample_name = $os.path.splitext($sample_name)[0]
#end if
#else if $sample_name.find("_") > 0:
- #if $read1.is_of_type('fastqsanger.gz'):
+ #if $read1.is_of_type('fastqsanger.gz') and $sample_name.endswith('gz'):
## Something like my_sample_fastq_gz
#set sample_name = '_'.join($sample_name.split('_')[0:-2])
#else:
@@ -37,6 +45,7 @@
#set sample_name = "_".join($sample_name.split("_")[0:-1])
#end if
#end if
+
echo '$sample_name' > '$output'
]]>
@@ -49,13 +58,13 @@
-
-
-
+
+
+
@@ -68,7 +77,14 @@
-
+
+
+
+
+
+
+
+
@@ -79,12 +95,16 @@
-
+
-
-
-
-
+
+
+
+
+
+
+
+