File: run-demo

package info (click to toggle)
hinge 0.5.0-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,972 kB
  • sloc: cpp: 9,480; ansic: 8,826; python: 5,023; sh: 340; makefile: 10
file content (55 lines) | stat: -rw-r--r-- 1,204 bytes parent folder | download
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
#!/bin/bash

CUR_DIR=`pwd`

if [ "$AUTOPKGTEST_TMP" = "" ]; then
	AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXX`

	trap "rm -rf $AUTOPKG_TMP" 0 INT QUIT ABRT PIPE TERM

fi

mkdir -p "$AUTOPKGTEST_TMP"/tests

# Copy configuration file
cp -a "${CUR_DIR}"/utils/nominal.ini "$AUTOPKGTEST_TMP"/tests

cd "$AUTOPKGTEST_TMP"/tests/


# Download Data
wget http://gembox.cbcb.umd.edu/mhap/raw/ecoli_p4_filtered.fastq.gz

# Extract Data
gunzip ecoli_p4_filtered.fastq.gz

seqtk seq -a ecoli_p4_filtered.fastq > reads.fasta
hinge correct-head reads.fasta reads.pb.fasta map.txt

fasta2DB ecoli reads.fasta
DBsplit -x500 -s100 ecoli     
HPC.daligner -t5 ecoli | bash -v

LAmerge ecoli.las ecoli.[1-5].las

rm ecoli.*.las 
DAScover -v -H10000 -mrepeat_mask ecoli.db ecoli.las
DASqv -c100 ecoli ecoli.las

# Run filter

mkdir log
hinge filter --db ecoli --las ecoli.las -x ecoli --config nominal.ini

# Get maximal reads

hinge maximal --db ecoli --las ecoli.las -x ecoli --config nominal.ini

# Run layout

hinge layout --db ecoli --las ecoli.las -x ecoli --config nominal.ini -o ecoli


# Run postprocessing ( networkx version needs to be downgraded to 1.x )

hinge clip ecoli.edges.hinges ecoli.hinge.list demo