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

read.ms.output() #7

Open
suiyuano opened this issue Jun 24, 2024 · 3 comments
Open

read.ms.output() #7

suiyuano opened this issue Jun 24, 2024 · 3 comments

Comments

@suiyuano
Copy link

when using gap to read an input file of msms, it reports that:

"Error in gap::read.ms.output(hap_file, verbose = verbose) :
不是所有的length(marker) == ndraws都是TRUE"

could u plz tell me how to solve the issue?

@jinghuazhao
Copy link
Owner

jinghuazhao commented Jun 24, 2024

Thanks for letting me know .

I haven't used it for a long time and just experimented with it. It worked as follows,

  1. Compiled from inst/ms/ with bash clms which gives ms.
  2. Move ms into a folder/directory that is in the search path, in my case ~/bin
  3. Start R, load gap and run the documentation example,
     system("ms 5 4 -s 5 > ms.out")
     msout1 <- read.ms.output("ms.out")
    
     system("ms 50 4 -s 5 > ms.out")
     msout2 <- read.ms.output("ms.out",outfile="out",outfileonly=TRUE)
    
     msout <- system("ms 5 4 -s 5 -L", intern=TRUE)
     msout3 <- read.ms.output(msout,FALSE)

Hope this helps

@suiyuano
Copy link
Author

suiyuano commented Jun 24, 2024 via email

@jinghuazhao
Copy link
Owner

jinghuazhao commented Jun 25, 2024

Thanks for the feedback. In fact read.ms.output() was based author of ms himself and it would indeed be nice to mirror a read.msms.output().

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