# HG changeset patch
# User greg
# Date 1676050504 0
# Node ID 64999b5b58fe3aab79d544cf2d3a4d7ba0716074
Uploaded
diff -r 000000000000 -r 64999b5b58fe .shed.yml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.shed.yml	Fri Feb 10 17:35:04 2023 +0000
@@ -0,0 +1,9 @@
+name: call_amr_mutations
+owner: greg
+description: Accepts VarScan mpileup2snps file, filters them, and produces a VCF file.
+long_description: Accepts VarScan mpileup2snps file, filters them, and produces a VCF file.
+categories: 
+- Visualization
+remote_repository_url: https://github.com/gregvonkuster/galaxy_tools/tree/master/tools/pima/call_amr_mutations
+homepage_url: https://github.com/gregvonkuster/galaxy_tools
+type: unrestricted
diff -r 000000000000 -r 64999b5b58fe call_amr_mutations.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/call_amr_mutations.xml	Fri Feb 10 17:35:04 2023 +0000
@@ -0,0 +1,37 @@
+
+    
+    
+        macros.xml
+    
+    
+     0:
+    cat '$varscan_raw' | awk '(NR > 1 && $9 == 2 && $5 + $6 >= 15){OFS = "\t";f = $6 / ($5 + $6); gsub(/.*\//, "", $4);s = $4;gsub(/[+\\-]/, "", s);$7 = sprintf("%.2f%%", f * 100);min = 1 / log(length(s) + 2) / log(10) + 2/10;if(f > min){print}}' > varscan_snp &&
+    cat varscan_snp | awk '{OFS = "\t"; print $1,$2,".",$3,$4,-log($14),"PASS",".","GT","1|1"}' > varscan_snp_vcf &&
+    cat varscan_snp_vcf | sort -k 1,1 -k 2n,2n | awk 'BEGIN{OFS = "\t";print "#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tINFO\tFORMAT\tSAMPLE"}{print}' > '$varscan_vcf'
+#end if
+]]>
+    
+        
+        
+    
+    
+        
+    
+    
+        
+            
+            
+            
+        
+    
+    
+**What it does**
+
+Accepts VarScan mpileup2snps file, filters them, and produces a VCF file.
+    
+    
+
+
diff -r 000000000000 -r 64999b5b58fe macros.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/macros.xml	Fri Feb 10 17:35:04 2023 +0000
@@ -0,0 +1,17 @@
+
+    1.0.0
+    0
+    21.01
+    
+        
+            coreutils
+            gawk
+        
+    
+    
+        
+            10.1101/011650
+        
+    
+
+