Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

partition_by_locus.R error #2

Closed
ymilesz opened this issue Jan 18, 2020 · 2 comments
Closed

partition_by_locus.R error #2

ymilesz opened this issue Jan 18, 2020 · 2 comments

Comments

@ymilesz
Copy link

ymilesz commented Jan 18, 2020

Hi Alana,

I am trying to run your script for the partition_by_locus.R in order to do SWSC, but I get the following error:

Error in finalnameseq[, 1] <- unlist(strsplit(firstrows, "\s"))[seq(1, :
number of items to replace is not a multiple of replacement length

@laninsky
Copy link
Owner

Heyo Miles,

Could I get you to shoot me say, five of your phylip files or so? That'll probably be the quickest way for me to work out why my code is buggy! Also, just an FYI, you can achieve the same outcome with phyluce using the format_nexus_files_for_raxml script and the --nexus and --charsets flags, in case you'd rather that option.

Cheers,

Alana

@ymilesz ymilesz closed this as completed Jan 19, 2020
@laninsky
Copy link
Owner

It wasn't obvious from the README for this script, but it needs to be run on the phyluce output folder that has a separate phylip file per locus, but where you have each taxon present (i.e. missing data has been "added" based on the phyluce pipeline). The code we used for this is here: https://github.com/laninsky/UCE_processing_steps#adding-missing-data-designators , but names have to be lower case and the adding-missing-data-designators script has to be run with --verbatim for it to work due to this issue: faircloth-lab/phyluce#34 . Updating the README to make all of this a little clearer for the next person who tries to use it! Thanks for flagging this @ymilesz !

laninsky added a commit that referenced this issue Jan 19, 2020
Modifying README in response to #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants