-
Notifications
You must be signed in to change notification settings - Fork 1
/
fixchr.sh
executable file
·18 lines (18 loc) · 1.16 KB
/
fixchr.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
BINDIR=`dirname $(readlink -f "$0")`
OUTDIR=`pwd`
readfilter='200k'
chr=$1
minq=$2
newcontigsfile=$OUTDIR/'chm13_'$chr'_'$readfilter'_'$minq'_newscaffolds.fa'
outfile=$OUTDIR/'chm13_'$chr'_'$readfilter'_'$minq'_allscaffolds.fa'
contigsfn='/scratch/groups/mschatz1/mkirsche/t2tglobus/chr'$chr'_pieces.fasta'
alnfn='/scratch/groups/mschatz1/mkirsche/t2tglobus/minimap/chr'$chr'_'$readfilter'.paf'
readfn='/scratch/groups/mschatz1/mkirsche/rel5_'$readfilter'.fastq'
echo 'Compiling'
javac $BINDIR/src/*.java
echo 'Running scaffolding'
java -cp $BINDIR/src Main aln_fn=$alnfn fasta_fn=$contigsfn read_fn=$readfn read_map_file=$OUTDIR/'chm13_'$chr'_'$readfilter'_'$minq'_usefulreadsmap.paf' contig_map_file=$OUTDIR/'chm13_'$chr'_'$readfilter'_'$minq'_usefulcontigsmap.paf' out_file=$newcontigsfile minq=$minq full_out_gfa_fn=$OUTDIR/'scaffolds_'$chr'_'$readfilter'_'$minq'.full.gfa' joins_out_gfa_fn=$OUTDIR/'scaffolds_'$chr'_'$readfilter'_'$minq'.joins.gfa' read_metadata_fn=$OUTDIR/'scaffolds_'$chr'_'$readfilter'_'$minq'.reads.tsv' min_weight_supp=100 min_weight=10
echo 'Stitching in new contigs'
java -cp $BINDIR/src StitchFasta $contigsfn $newcontigsfile $outfile
echo 'Done'
echo ''