in reply to Re: Command or Perl script for changing headers of multiple FASTA files in a specific order listed in a txt file
in thread Command or Perl script for changing headers of multiple FASTA files in a specific order listed in a txt file
well i have tried the following code:
i put the following function in linux enviroment: and(i guess problem is here but unbable to fix it )
function sedinho () { sed -i "s/^.*\]/>$1/g" $2;} export -f sedinho
create variables of : list of new headers (LIST1) list of input files (LIST2)
LIST1=($(cat Headers.txt)) LIST2=($(find /folder/with/fasta/files/ -maxdepth 0 -name "*CDS.fasta" + | sort)) parallel --xapply sedinho {1} {2} ::: ${LIST1[@]} ::: ${LIST2[@]}
ERROR:
zsh:1: command not found: sedinho
zsh:1: command not found: sedinho
zsh:1: command not found: sedinho
how to put a function in linux environment accurately ??
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Command or Perl script for changing headers of multiple FASTA files in a specific order listed in a txt file
by poj (Abbot) on Sep 11, 2017 at 12:27 UTC | |
by Anonymous Monk on Sep 12, 2017 at 12:08 UTC |