Segment clusters from binary mask:
Get the COG coordinates from the fsl_clusters.txt and make them into a space separated file that can be loaded into FSLeyes:
awk 'BEGIN {FS="\\t"; OFS=" "} NR>1 {print $7 ,$8, $9, $1}' fsl_clusters.txt > output_clusters.txt
awk 'NR==1 || $2 > 60' sub-1.txt | awk 'BEGIN {FS="\\t"; OFS=" "} NR>1 {print $7 ,$8, $9, $1}’
Launch FSLeyes with the desired image
Load output_clusters.txt into location:
Now you can iterate through every lesion by clicking on the lesion coordinates and assess the lesion by passing in it’s type:
tr ' ' ',' < lesions_assessed.txt > lesions_assessed.csv
cut -d',' -f5 lesions_assessed.csv | sort | uniq -c > unique_values.csv