Comments (3)
So, after closer examination, I don't believe this is a script issue, but rather reflects a more interesting conundrum surrounding the use of the "region" being appended to the end of the collection name in step 2 (eg. append_region =TRUE
in fix_pop_names()
. This is a useful feature - allows for quickly identifying regional or CU groupings when organizing a dendrogram - but means that the "drop_pops" file needs to also include the region for a match to be made.
Three potential fixes:
-
Just leave it as is, and make this clear in the README? You could probably do this region appending easily enough from the "StockCodes" file created by
prepare_stockcode_file()
in step 2, in excel (or even directly in that script). Excel would be=B2&"_"&C2
then dragging that down. In R, this could be a fourth column that is output to this StockCode file, such asdf$collection_repunit <- paste(df$collection, df$repunit, sep="_")
-
Allow for a string partial match. This I don't like, because there will be situations where you might want to drop "Chilliwack" but not "Chilliwack-summer". We would have to rely on the string being unique, which will be dangerous (99.9% successful, but that 0.1 will cause problems".
-
Append the region to the filter file, by new script?
-
... Suggestions?
from simple_pop_stats.
@erondeau, may not be the best solution but if I did the fix pop without appending then applied the drop pop filter and went back to fix pop script and did the appending to region?
from simple_pop_stats.
This is a good idea - although it didn't work as currently written. Still, some version of Janine's suggestion is likely best, and can be written into the Readme. I will follow-up next week on how to implement it!
from simple_pop_stats.
Related Issues (20)
- genepop_to_rubias() not describing properly when collections are duplicated. HOT 1
- Need method to convert geneclass/genepop mix file to rubias input
- LaTeX installation instructions needed on README HOT 2
- Baseline benchmarks: how to deal with same baseline but multiple grouping levels
- Need stand-alone function to screen rubias file for a percentage or total number missing loci (micro and rubias)
- pca_from_genind.r not using default colour option. HOT 1
- Minimum number of genotypes/individual
- Automate copy paste rename of benchmark into the reference database folder
- Automate building of the folder structure for starting a new benchmark folder
- Order by repunits in plot_summarize_100_sim() not yet working for microsatellites
- Realistic Fishery Scenario does not show all populations, only those set in the ppn file with non-zero
- PPN file example needed in README for Realistic Fishery Scenario
- Benchmark PDF is sent to github folder not target
- Benchmark PDF name
- Left justify changes and notes tables in benchmark
- Reduce width of simulation table and make portrait from landscape
- Repunit filenames need to be constant for all species and added as variable to launch script HOT 1
- Additional packages pdfcrop and ghostscript in baseline benchmark markdown HOT 3
- Capitalization of headers - more flexibility?
- Ghostscript not in path
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple_pop_stats.