speciationgenomics / scripts

Scripts for analysis used during the course
81 stars 62 forks source link

Add custom color option #18

Open wfenglund opened 6 months ago

wfenglund commented 6 months ago

A pull request to add optionality to add a comma-separated list of colors with the flag -c or --color when running the script. If no color list is given the default rainbow palette is used. This makes it possible for the user to fine-tune what colors to use if they want to. This is helpful since the rainbow palette can be a bit hard on the eyes with some maxK values.

Examples of usage: plotADMIXTURE.r -p fileXY -i file.ind.pop.txt -k 4 -pop pop1,pop2,pop3 -c red,black,white,green,blue,gray and: plotADMIXTURE.r -p fileXY -i file.ind.pop.txt -k 4 -pop pop1,pop2,pop3 -c 1,2,3,4,5,6

wfenglund commented 5 months ago

Our team would have good use of this script if the color option is accepted. We would prefer to contribute to this original project, but if your team is not interested in this change we will most likely make our own version based on this and continue working on it in our repository instead (but available to anyone of course).