File: generate_refs.sh

package info (click to toggle)
discosnp 1%3A2.6.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,656 kB
  • sloc: python: 5,893; sh: 2,966; cpp: 2,692; makefile: 14
file content (57 lines) | stat: -rw-r--r-- 2,829 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
 
#####################
# Default option run: 
#####################
../../run_discoSnp++.sh -r fof.txt -T -P 1
if [ $? -ne 0 ] ; then
       echo "*** Default option FAILURE:"
       echo "*** discoSnp failure"
       exit 1
fi
mv discoRes_k_31_c_3_D_100_P_1_b_0_coherent.fa ref_discoRes_k_31_c_3_D_100_P_1_b_0_coherent.fa 
mv discoRes_k_31_c_3_D_100_P_1_b_0_coherent.vcf ref_discoRes_k_31_c_3_D_100_P_1_b_0_coherent.vcf


######################################################
# With reference run (using previously created graph): 
######################################################
../../run_discoSnp++.sh -r fof.txt -T -G humch1_first_5M.fasta -g discoRes_k_31_c_3.h5 -P 1
if [ $? -ne 0 ] ; then
       echo "*** With mapping on ref FAILURE:"
       echo "*** discoSnp failure"
       exit 1
fi
mv discoRes_k_31_c_3_D_100_P_1_b_0_coherent.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_1_b_0_coherent.vcf
mv discoRes_k_31_c_3_D_100_P_1_b_0_coherent_for_IGV.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_1_b_0_coherent_for_IGV.vcf

#####################
# CLOSE SNPS  option run: 
#####################
../../run_discoSnp++.sh -r fof.txt -T -P 10
if [ $? -ne 0 ] ; then
       echo "*** With close SNPS FAILURE:"
       echo "*** discoSnp failure"
       exit 1
fi
mv discoRes_k_31_c_3_D_100_P_10_b_0_coherent.fa ref_discoRes_k_31_c_3_D_100_P_10_b_0_coherent.fa
mv discoRes_k_31_c_3_D_100_P_10_b_0_coherent.vcf ref_discoRes_k_31_c_3_D_100_P_10_b_0_coherent.vcf

######################################################
# With reference run (using previously created graph): 
######################################################
../../run_discoSnp++.sh -r fof.txt -T -G humch1_first_5M.fasta -g discoRes_k_31_c_3.h5 -P 10
if [ $? -ne 0 ] ; then
       echo "*** With close SNPS and mapping on ref FAILURE:"
       echo "*** discoSnp failure"
       exit 1
fi
mv discoRes_k_31_c_3_D_100_P_10_b_0_coherent.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_10_b_0_coherent.vcf 
mv discoRes_k_31_c_3_D_100_P_10_b_0_coherent_for_IGV.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_10_b_0_coherent_for_IGV.vcf

# create archive
zip -r  data_test_disco.zip  humch1_00096_reads.fasta.gz humch1_00100_reads.fasta.gz humch1_first_5M.fasta ref_discoRes_k_31_c_3_D_100_P_10_b_0_coherent.fa ref_discoRes_k_31_c_3_D_100_P_10_b_0_coherent.vcf ref_discoRes_k_31_c_3_D_100_P_1_b_0_coherent.fa ref_discoRes_k_31_c_3_D_100_P_1_b_0_coherent.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_10_b_0_coherent.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_10_b_0_coherent_for_IGV.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_1_b_0_coherent.vcf ref_with_mapping_discoRes_k_31_c_3_D_100_P_1_b_0_coherent_for_IGV.vcf 
#(update
#Mettre sur bioinformatique
#OLD: scp data_test_disco.zip ppeterlo@scm.gforge.inria.fr:/home/groups/gatb-discosnp/htdocs)