-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c393350
commit 8ac3964
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# 100720 | ||
# returns number of reads in a fastq file | ||
|
||
# usage: numberReadsFastq.command XXX.fastq | ||
|
||
#!/bin/bash | ||
|
||
FASTQGZ="$1" | ||
|
||
zcat < $FASTQGZ | echo $((`wc -l`/4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
# run Sniffles on a folder of BAM files | ||
|
||
mkdir SVs_sniffles/vcf | ||
|
||
for i in promoterbamfilt/*.bam # loop thru files in directory that finish by .bam | ||
do | ||
|
||
BAM="$i" | ||
|
||
PDG="$(echo "$BAM" | cut -d'_' -f 1 | cut -d'/' -f 2)" # everything before '_', then everything after '/' | ||
# e.g. promoterbamfilt/55052_promoterSnif.vcf >> promoterbamfilt/55052, then 55052 | ||
|
||
VCF="$(echo $"SVs_sniffles/vcf/"$PDG$"_promoterSnif.vcf")" | ||
|
||
|
||
echo "---- [ SNIFFING PROMOTER "$" $BAM ] ----" | ||
|
||
sniffles --mapped_reads "$BAM" \ | ||
--vcf "$VCF" \ | ||
--genotype \ | ||
--min_support 10 \ | ||
--min_length 10 \ | ||
--max_distance 50 | ||
|
||
done | ||
|
||
###### | ||
|
||
for i in bamfilt/*.bam # loop thru files in directory that finish by .bam | ||
do | ||
|
||
BAM="$i" | ||
|
||
PDG="$(echo "$BAM" | cut -d'_' -f 1 | cut -d'/' -f 2)" # everything before '_', then everything after '/' | ||
# e.g. bamfilt/55052_promoterSnif.vcf >> promoterbamfilt/55052, then 55052 | ||
|
||
VCF="$(echo $"SVs_sniffles/vcf/"$PDG$"_bodySnif.vcf")" | ||
|
||
echo "---- [ SNIFFING GENEBODY "$" $BAM ] ----" | ||
|
||
sniffles --mapped_reads "$BAM" \ | ||
--vcf "$VCF" \ | ||
--genotype \ | ||
--min_support 300 \ | ||
--min_length 20 \ | ||
--max_distance 50 | ||
|
||
done |