[michelles@amphiprion Pool7]$ rename.for.dDocent names_Pool7.tsv
a bunch weren’t renamed…take a look at rename.for.dDocent script
[michelles@amphiprion Pool7]$ nano ~/03_scripts/rename.for.dDocent
changed:
for ((i = 0; i <= $LEN; i++));
do
mv sample_${BARCODES[$i]}.1.fq ${NAMES[$i]}.F.fq
mv sample_${BARCODES[$i]}.2.fq ${NAMES[$i]}.R.fq
mv sample_${BARCODES[$i]}.rem.1.fq $[NAMES[$i]}.rem.F.fq
mv sample_${BARCODES[$i]}.rem.2.fq $[NAMES[$i]}.rem.R.fq
saved as rename.for.dDocent_10202014
also updated names file to include additional barcodes…example GTCTAT is barcode #41, which was used for the first time in July 2014 (rehydrated then too, not even in the lab back in April so can’t be contaiminant)…let’s just ignore these for now and rename the rem files that coincide with our names file…
[michelles@amphiprion Pool7]$ chmod u+x ~/03_scripts/rename.for.dDocent_10202014
[michelles@amphiprion Pool7]$ rename.for.dDocent_10202014 names_Pool7.tsv
/local/home/michelles/03_scripts/rename.for.dDocent_10202014: line 21: unexpected EOF while looking for matching `]'
/local/home/michelles/03_scripts/rename.for.dDocent_10202014: line 25: syntax error: unexpected end of file
/local/home/michelles/03_scripts/rename.for.dDocent_10202014: line 21: ${[NAMES[$i]}.rem.F.fq: bad substitution
script doesn’t work, moving on