Skip to content

Commit

Permalink
new file: bcbio.prepare_family1.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
naumenko-sa committed Jun 2, 2017
1 parent 5cc033e commit 1c7d639
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions bcbio.prepare_family1.sh
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 ..


0 comments on commit 1c7d639

Please sign in to comment.