-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: fixit.sh new file: vcf.split_multi.sh
- Loading branch information
naumenko-sa
committed
Jul 6, 2017
1 parent
3bd20bf
commit a363f98
Showing
3 changed files
with
33 additions
and
1 deletion.
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
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,23 @@ | ||
#!/bin/bash | ||
|
||
#$1 = family_id | ||
|
||
cat samples.txt | awk -v fam=$1 '{print fam"_"$1}' > samples.txt.fixed | ||
rm samples.txt | ||
mv samples.txt.fixed samples.txt | ||
|
||
for f in *ready.bam.bai;do mv $f `echo $f | sed s/"-ready"//`;done; | ||
for f in *ready.bam;do mv $f `echo $f | sed s/"-ready"//`;done; | ||
for f in *.bam;do mv $f `echo ${1}_${f}`;done; | ||
for f in *.bam.bai;do mv $f `echo ${1}_${f}`;done; | ||
|
||
|
||
for f in *.vcf.gz;do bcftools reheader -s samples.txt $f > $f.reheader;done; | ||
rm *.vcf.gz | ||
for f in *.reheader;do mv $f `echo $f | sed s/.reheader//`;done; | ||
for f in *.vcf.gz; do tabix $f;done; | ||
|
||
vcf.split_multi.sh $1.vcf.gz | ||
|
||
# run gemini db gemini.vep2gemini.sh ${family}-ensemble-annotated-decomposed.vcf.gz | ||
# rerun cre.sh |
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,8 @@ | ||
#!/bin/bash | ||
|
||
# $1 = family.vcf.gz | ||
|
||
for sample in `cat samples.txt`; | ||
do | ||
bcftools view -c1 -Ov -s $sample -o $sample.vcf $1; | ||
done; |