...
Generate the manifest file
Code Block |
---|
parallel -k echo {} ::: db1 db2 db3 db4 ::: /dir/to/all/the/*.fasta > manifest |
There are other ways to generate a manifest file with one to multiple columns, using parallel
is one of the easiest ways. Parallel
is available as a software module and can be installed with mamba
in a python env on the supercomputers, while this step can also be performed on your local computer with parallel
installed. To find the parallel module on supercomputers:
Code Block |
---|
module avail parallel. # to find the correct module name module load parallel-20220522-gcc-12.1.0 # for Sol module load parallel-20220522-ie # for Phoenix |
Code Block |
---|
parallel -k echo {} ::: db1 db2 db3 db4 ::: /dir/to/all/the/*.fasta > manifest |
This line of code will mix and match the attributes {db1, db2, db3, db4}
with all the fasta files in the given directory, then write the outputs line by line into a text file called manifest. Below is an example of the output. The -k
flag means the sequence of the output lines should be the same order as the order of the given attributes.
...