Skip to content

Commit

Permalink
Fix arguments and paths for make_msa.sh, make make_ss.sh executable
Browse files Browse the repository at this point in the history
  • Loading branch information
alephreish committed Oct 22, 2024
1 parent 6c85140 commit 0b87de0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Empty file modified input_prep/make_ss.sh
100644 → 100755
Empty file.
13 changes: 10 additions & 3 deletions make_msa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,23 @@ out_dir="$2"
CPU="$3"
MEM="$4"

# directory with the databases
SEARCH_BASE="$5"

# template database
DB_TEMPL="$5"
DB_TEMPL="$6"

# current script directory (i.e., pipe directory)
SCRIPT=`realpath -s $0`
export PIPE_DIR=`dirname $SCRIPT`

if [ -z "$SEARCH_BASE" ]; then
SEARCH_BASE=$PIPE_DIR
fi

# sequence databases
DB_UR30="$PIPE_DIR/UniRef30_2020_06/UniRef30_2020_06"
DB_BFD="$PIPE_DIR/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt"
DB_UR30="$SEARCH_BASE/UniRef30_2020_06/UniRef30_2020_06"
DB_BFD="$SEARCH_BASE/bfd/bfd_metaclust_clu_complete_id30_c90_final_seq.sorted_opt"

# Running signalP 6.0
mkdir -p $out_dir/signalp
Expand Down
4 changes: 2 additions & 2 deletions rf2aa/data/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def make_msa(
if out_a3m.exists() and out_atab.exists() and out_hhr.exists():
return out_a3m, out_hhr, out_atab

search_command = f"./{command} {fasta_file} {out_dir} {num_cpus} {ram_gb} {search_base} {template_database}"
search_command = list(map(str, [ command, fasta_file, out_dir, num_cpus, ram_gb, search_base, template_database ]))
print(search_command)
_ = subprocess.run(search_command, shell=True)
_ = subprocess.run(search_command)
return out_a3m, out_hhr, out_atab

0 comments on commit 0b87de0

Please sign in to comment.