Skip to content

Commit

Permalink
Add step to write *.2bit & *.bed files #76.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnikz committed Nov 25, 2020
1 parent 1d9d3d9 commit 302c865
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ eval "$(conda shell.bash hook)"
conda activate $CONDA_ENV
conda list

# extract N's from sequence into BED
cd scripts/utils
p=Ns_to_bed
cmd="faToTwoBit \"$FASTA\" \"$TWOBIT\" && \
python $p.py -b \"$REF_REG\" -t \"$TWOBIT\" -c \"$SEQ_IDS\""
JOB_ID=$(submit "$cmd" "$p")
JOBS+=($JOB_ID)

# compute genome mappability
p=genmap
cmd="./$p.sh \"$FASTA\" \"$BIGWIG\" $KMERS $MAX_MISMATCH"
Expand Down Expand Up @@ -110,7 +118,7 @@ cmd="python $p.py \
-o $p.json.gz \
-p . \
-l $p.log"
JOB_ID=$(submit "$cmd" $p)
JOB_ID=$(submit "$cmd" "$p")
JOBS+=($JOB_ID)

p=clipped_read_pos
Expand All @@ -120,7 +128,7 @@ cmd="python $p.py \
-o $p.json.gz \
-p . \
-l $p.log"
JOB_ID=$(submit "$cmd" $p)
JOB_ID=$(submit "$cmd" "$p")
JOBS+=($JOB_ID)

p=split_reads
Expand All @@ -131,7 +139,7 @@ cmd="python $p.py \
-ob $p.bedpe.gz \
-p . \
-l $p.log"
JOB_ID=$(submit "$cmd" $p)
JOB_ID=$(submit "$cmd" "$p")
JOBS+=($JOB_ID)

for s in $(echo "$SEQ_IDS" | tr ',' ' '); do # per chromosome
Expand Down

0 comments on commit 302c865

Please sign in to comment.