-
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.
- Loading branch information
naumenko-sa
committed
Jun 2, 2017
1 parent
5cc033e
commit 1c7d639
Showing
1 changed file
with
32 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,32 @@ | ||
#!/bin/bash | ||
|
||
#prepare family for bcbio run when input files are family_sample.bam or family_sample_1/2.fq.gz | ||
|
||
family=$1 | ||
|
||
cd $family | ||
|
||
cp ~/cre/bcbio.sample_sheet_header.csv $family.csv | ||
|
||
cd input | ||
|
||
ls | sed s/.bam// | sed s/.bai// | sed s/"_1.fq.gz"// | sed s/"_2.fq.gz"// | sort | uniq > ../samples.txt | ||
|
||
|
||
cd .. | ||
|
||
while read sample | ||
do | ||
echo $sample","$sample","$family",,," >> $family.csv | ||
done < samples.txt | ||
|
||
bcbio_nextgen.py -w template ~/cre/bcbio.templates.exome.yaml $family.csv input/* | ||
|
||
mkdir config | ||
mkdir work | ||
|
||
cp $family/config/$family.yaml config | ||
|
||
cd .. | ||
|
||
|