genomewalker
5/11/2017 - 12:08 PM

Select MAGs with BGCs

Select MAGs with BGCs

# Files are in /bioinf/projects/megx/TARA/MAGs/antismash
# We create a folder to store the bgc files
mkdir mags_with_bgcs

# copy the files from TARA_output to mags_with_bgcs and change names

cd TARA_output
find $(pwd) -name '*cluster*gbk' | while read line;do NAM=$(basename $line | cut -f4 -d '.'); NAM1=$(echo $line | cut -f9 -d '/' | sed -e 's/antiSMASH_output//'); NAM3=$NAM1$NAM".gbk"; cp $line ../mags_with_bgcs/${NAM3}; done