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

MutateSeq function do not mark saturated sites correctly #1

Open
javieriserte opened this issue Feb 19, 2020 · 0 comments
Open

MutateSeq function do not mark saturated sites correctly #1

javieriserte opened this issue Feb 19, 2020 · 0 comments

Comments

@javieriserte
Copy link

I think that array named "vector" in the code below is used to mark those sites that has a large number of non- synonymous mutations, however the marked site is a different randomly chosen site.

# Line 713 of tools.c
while(nsyn_persite[p]/Options.runs > print_parameter ) {
    # site p is saturated if code enter the while loop
    r=rndu(); 

    if(r!=1.0)
        p=r*protsize; 
    else
        p=0; 
    # A new site p is chosen randomly.

    vector[p]=1; 
    # The new site p is marked as saturated, not the initial one.

    cont=0; 
    for(i=0;i<protsize;i++) { 
        if(vector[i]!=0){ 
            cont++; 
        } 
    } 
    if(cont==protsize) { 
        average=1.; 
        return(1); 
    } 
} 
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

1 participant