HowTo

From salvaEwiki
Revision as of 23:39, 24 August 2017 by SalvaE (talk | contribs)
Jump to: navigation, search

In bash, at Moria

Generate the md5 signatures of the files in a folder:

for file in /Volumes/MBL21/A_TREASURY/012_A_TRASURY_ThiobiosGenomes/* ; do  md5 -q $file >> resultsQ.out ; done

Generate the sizes of the files in a folder:

for file in /Volumes/MBL21/A_TREASURY/012_A_TRASURY_ThiobiosGenomes/* ; do  wc -c $file >> sizes.out ; done

Extract the first column:

awk '{print $1}' sizes.out > sizesQ.out

At CUBE

GC contents of the files in a folder:

for file in /proj/genomes/Thiobios/data/ThiobiosMAGs/* ; do  gc  $file >> gc.out ; done
awk '{print $4}' gc.out > gcQ.out