Debian Codegraph @

test/contig_test/README

raw
1 # Claire Lemaitre
2 # 06/07/2018
3
4 # Creates a small dataset to test MindTheGap fill -contig
5 # With :
6 # - several contigs, with 1 too small one
7 # - errors in anchors
8 # - 2 contigs that overlap of 30 nt.
9 # - 2 structural variants
10 # - 1 noise contig
11
12
13 # 1. Generates a random genome
14 ~/workspace/divers_scripts/gener_alea 10000 1
15 mv alea.seq genome.fasta
16
17 # 2. Extract 10 contigs:
18 - contig1: 0:521
19 - contig2: 1000:1065 = contig too small
20 - contig3: 1156:2115
21 - contig4: 2268:3150
22 - contig5: 3120:3720 = overlap de 30 nt with last contig
23 - contig6: 6271:6911
24 - contig7: 7071:7796
25 - contig8: 8274:8679
26 - contig9: noise contig, comes from another random sequence : ~/workspace/divers_scripts/gener_alea 500 1; mv alea.seq contig9.fasta
27 - contig10: 9486:9999 : with 2 substitutions pos 40 G->C pos 57 T->C
28
29 # 3. creates 2 structural variants :
30 cp genome.fasta genome-variant.fasta, 2 deletions in genome-variant.fasta :
31 - deletion that removes contig7 : 6960-8080 --> gap-fill contig6->contig7, contig7->contig8 and contig6->contig8.
32 - deletion that removes a large portion between contig5 and contig6 : 4000:5600 => 2 alternative gap-fill sequences.
33
34 # 4. generates reads :
35 2x30X : N*100/10000 = 30 => N=3000
36 cp /Users/clemaitr/workspace/mutareads/*.qual .
37 /Users/clemaitr/workspace/mutareads/mutareads genome.fasta temp1 3000 100 0.01 0 0
38 /Users/clemaitr/workspace/mutareads/mutareads genome-variant.fasta temp2 3000 100 0.01 0 0
39 cat temp1.fasta temp2.fasta > reads.fasta
40 gzip reads.fasta
41 rm -f *.qual
42
43 # 5. put the data in data dir :
44 cp reads.fasta.gz ../../data/contig-reads.fasta.gz
45 cp contigs.fasta ../../data/
46
47
48 # 5. generates gold results :
49 ../../build/bin/MindTheGap fill -in ../../data/contig-reads.fasta.gz -contig ../../data/contigs.fasta -abundance-min 3 -out gold -nb-cores 1 > gold.log
50
51 # 6. dir cleaning :
52 rm -f temp*.fasta
53 rm -f contig9.fasta
54