![image](https://private-user-images.githubusercontent.com/46382670/283268135-1d814a2d-ae54-4690-b70f-8353bae1457f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUxMzY3NjcsIm5iZiI6MTcxNTEzNjQ2NywicGF0aCI6Ii80NjM4MjY3MC8yODMyNjgxMzUtMWQ4MTRhMmQtYWU1NC00NjkwLWI3MGYtODM1M2JhZTE0NTdmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA1MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNTA4VDAyNDc0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFhNmEzNGUwNjAxMTYwNTc5N2U3N2IyYWRiN2IyMGE4ZDU1OTUyYjEyN2I3MGYzNjRhYTliN2NiMTFmZmU3MjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._DNOwNsI3uYh7cKpdZw-2nQo6A8ThBFRNnOcnyu8NPI)
conda env create -f microglmm.yml
conda activate microglmm
From R
R
library(devtools)
install_github('miriam-goldman/micro.glmm')
Rscript src/prep_snps_command_line.R --species_id exp_species -v TRUE -o "example_output"
-i "example_data/exp_species.snps_info.tsv"
-f "example_data/exp_species.snps_freqs.tsv"
-d "example_data/exp_species.snps_depth.tsv"
-a 3 -m 5 -n 5
For easier copy
Rscript src/prep_snps_command_line.R --species_id exp_species -v TRUE -o "example_output" -i "example_data/exp_species.snps_info.tsv" -f "example_data/exp_species.snps_freqs.tsv" -d "example_data/exp_species.snps_depth.tsv" -a 3 -m 5 -n 5
Rscript src/prep_genes_command_line.R --species_id exp_species -v TRUE -o "example_output"
-c "example_data/exp_species.genes_copynum.tsv"
-d "example_data/exp_species.genes_depth.tsv"
-m 5 -n 5 --GRM example_output/exp_species.GRM.tsv --write_csv TRUE
For easier copy
Rscript src/prep_genes_command_line.R --species_id exp_species -v TRUE -o "example_output" -c "example_data/exp_species.genes_copynum.tsv" -d "example_data/exp_species.genes_depth.tsv" -m 5 -n 5 --GRM example_output/exp_species.GRM.tsv --write_csv TRUE
Rscript src/pop_structure_test_command_line.R --species_id exp_species -v TRUE -o example_output
--GRM example_output/exp_species.GRM.tsv
--metadata example_data/exp_metadata.tsv
--tau 1 --n_tau 10
For easier copy
Rscript src/pop_structure_test_command_line.R --species_id exp_species -v TRUE -o example_output --GRM example_output/exp_species.GRM.tsv --metadata example_data/exp_metadata.tsv --tau 1 --n_tau 10
Rscript src/marker_test_command_line.R --species_id exp_species -v TRUE
-o example_output
--Rdata example_output/exp_species.model_obj.Rdata
--copy_number example_output/exp_species.copynumber_data.csv
For easier copy
Rscript src/marker_test_command_line.R --species_id exp_species -v TRUE -o example_output --Rdata example_output/exp_species.model_obj.Rdata --copy_number example_output/exp_species.copynumber_data.csv