Skip to content

Commit ecd494e

Browse files
committed
Fixing test_data_studies/commands.sh
1 parent 900a391 commit ecd494e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test_data_studies/commands.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ for i in ${studies[@]}; do
4040
qiita db load_sample_template $sample_file --study $study_id
4141
echo "Ok"
4242

43+
# Loading prep template
44+
echo "\tloading prep template... "
45+
output=`qiita db load_prep_template $prep_file --study $study_id --data_type "16S"`
46+
pt_id=`echo -e "${output}" | cut -d " " -f 10`
47+
echo "Ok"
48+
4349
# Loading raw data
4450
echo "\tloading raw data... "
4551
echo -e ">seq\nAAAA" > seqs.fna
46-
output="`qiita db load_raw --fp seqs.fna --fp_type raw_forward_seqs --filetype FASTQ --study $i`"
52+
output="`qiita db load_raw --fp seqs.fna --fp_type raw_forward_seqs --filetype FASTQ --prep_template $pt_id`"
4753
raw_id=`echo -e "${output}" | cut -d " " -f 10`
4854
echo "Ok"
4955

50-
# Loading prep template
51-
echo "\tloading prep template... "
52-
output=`qiita db load_prep_template $prep_file --raw_data $raw_id --study $study_id --data_type "16S"`
53-
pt_id=`echo -e "${output}" | cut -d " " -f 10`
54-
echo "Ok"
55-
5656
# Loading preprocessed data
5757
echo "\tloading preprocessed data... "
5858
echo -e ">seq\nAAAA" > temp/seqs.fna

0 commit comments

Comments
 (0)