Skip to content

Commit

Permalink
undocumented beta release tested with beta tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cnotred committed Jun 5, 2021
1 parent af89940 commit 71ca9cd
Show file tree
Hide file tree
Showing 14 changed files with 109 additions and 37 deletions.
Binary file modified binaries/macosx/t_coffee
Binary file not shown.
2 changes: 1 addition & 1 deletion build/web-readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
T-Coffee distribution
=====================
Version_13.45.43.811bb88 #_#UPDATE_VERSION -- Populated by edit_version.pl
Version_13.45.44.af89940 #_#UPDATE_VERSION -- Populated by edit_version.pl
The version ID is organized as follows: <Major Release>.<Latest Stable>.<Latest Beta>.<Github version tag>
Content of this directory:
Linux Installation:
Expand Down
2 changes: 1 addition & 1 deletion docs/.html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: d3ee20c990c0a2cb3b2a9c226b0bae16
config: c8aac10e88e8ff4892edf17a9b14a7b1
tags: 33eac41acc08762151beb8f3b7b86c8f
Binary file modified docs/.html/.doctrees/environment.pickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/.html/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: 'Version_13.45.43.811bb88',
VERSION: 'Version_13.45.44.af89940',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
Expand Down
6 changes: 3 additions & 3 deletions docs/.html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>T-Coffee Version_13.45.43.811bb88 documentation</title>
<title>T-Coffee Version_13.45.44.af89940 documentation</title>



Expand Down Expand Up @@ -58,7 +58,7 @@


<div class="version">
Version_13.45.43.811bb88
Version_13.45.44.af89940
</div>


Expand Down Expand Up @@ -716,7 +716,7 @@

<li><a href="index.html#document-index">Docs</a> &raquo;</li>

<li>T-Coffee Version_13.45.43.811bb88 documentation</li>
<li>T-Coffee Version_13.45.44.af89940 documentation</li>


<li class="wy-breadcrumbs-aside">
Expand Down
Binary file modified docs/.html/objects.inv
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
# built documents.
#
# The short X.Y version.
version = u'Version_13.45.43.811bb88' #_#UPDATE_VERSION_TAG1 -- Populated by edit_version.pl
version = u'Version_13.45.44.af89940' #_#UPDATE_VERSION_TAG1 -- Populated by edit_version.pl
# The full version, including alpha/beta/rc tags.
release = u'Version_13.45.43.811bb88' #_#UPDATE_VERSION_TAG2 -- Populated by edit_version.pl
release = u'Version_13.45.44.af89940' #_#UPDATE_VERSION_TAG2 -- Populated by edit_version.pl

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
101 changes: 80 additions & 21 deletions lib/io_lib/tree_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -4574,6 +4574,8 @@ Sequence * get_treelist (char *fname)
}
vfclose (fpin);
vfclose (fpout);


return get_fasta_tree(seq, NULL);
}
Sequence*get_fasta_tree (char *fname, char *comment_out)
Expand Down Expand Up @@ -4616,8 +4618,7 @@ Sequence*get_fasta_tree (char *fname, char *comment_out)
fscanf_seq_name (fp,name);
while ((c=fgetc(fp))!='\n' && c!=EOF);
while ((c=fgetc(fp))!='>' && c!=EOF)
if (isgraph(c))
clen++;
clen++;
max_len_seq=(clen> max_len_seq)?clen: max_len_seq;
min_len_seq=(clen< min_len_seq)?clen: min_len_seq;
clen=0;
Expand All @@ -4628,6 +4629,7 @@ Sequence*get_fasta_tree (char *fname, char *comment_out)
}

vfclose (fp);

LS=declare_sequence ( min_len_seq, max_len_seq,nseq);

LS->nseq=nseq;
Expand All @@ -4654,7 +4656,6 @@ Sequence*get_fasta_tree (char *fname, char *comment_out)
{
LS->seq[current][p++]=c;
}

LS->seq[current][p]='\0';
LS->len[current]=strlen ( LS->seq[current]);

Expand Down Expand Up @@ -4782,7 +4783,7 @@ NT_node find_node_in_tree (int *key, int nseq, NT_node T)
NT_node recode_tree (NT_node T, Sequence *S)
{


int a;
if (!T) return T;


Expand All @@ -4794,7 +4795,7 @@ NT_node recode_tree (NT_node T, Sequence *S)

if ( T->isseq)
{

int i;
i=name_is_in_list (T->name, S->name, S->nseq, -1);

Expand All @@ -4814,7 +4815,7 @@ NT_node recode_tree (NT_node T, Sequence *S)
else
{
NT_node R,L;
int a;


R=recode_tree (T->left, S);

Expand Down Expand Up @@ -4846,6 +4847,7 @@ NT_node recode_tree (NT_node T, Sequence *S)

}
}

return T;
}
float *seq2dpa_weight (Sequence *S, char *mode)
Expand Down Expand Up @@ -5296,15 +5298,16 @@ int tree2split_list (NT_node T, int ns,int **sl, int* n)
return 1;
}

NT_node display_splits (NT_node T,Sequence *S, FILE *fp, char *name)
NT_node display_splits (NT_node T,Sequence *S, FILE *fp, char *name, char *file, char *sep)
{
int a;
int n;
if (!T) return T;

if (!S)S=tree2seq (T,NULL);

display_splits (T->right,S, fp, name);
display_splits (T->left, S, fp, name);
display_splits (T->right,S, fp, name,file,sep);
display_splits (T->left, S, fp, name,file,sep);



Expand All @@ -5316,16 +5319,21 @@ NT_node display_splits (NT_node T,Sequence *S, FILE *fp, char *name)
//Removed because it prevents some splits to be reported replaced with !T-Parent test.
else
{
int t=0;
for (a=0; a< S->nseq; a++)
int n;

for (n=0,a=0; a< S->nseq; a++)
n+=T->lseq2[a];
n=MIN(n,(S->nseq-n));

if ( n>1)
{
fprintf (fp, "%d", T->lseq2[a]);
t+=T->lseq2[a];
for (a=0; a< S->nseq; a++)
fprintf (fp, "%d", (T->lseq2[0])?T->lseq2[a]:1-T->lseq2[a]);
fprintf ( fp, "%s%d", sep,n);
if (name)fprintf (fp, "%s%s", sep,name);
if (file)fprintf (fp, "%s%s", sep,file);
fprintf (fp, "\n");
}

fprintf ( fp, " %d", MIN(t,((S->nseq)-t)));
if (name)fprintf (fp, " %s", name);
fprintf (fp, "\n");
}
return T;
}
Expand Down Expand Up @@ -6467,7 +6475,56 @@ Split * declare_split (int nseq, int ntrees)
S->split=(char*)vcalloc ( nseq+1, sizeof (char));
return S;
}
int treelist2splits( Sequence *S, Sequence *TS)

int treelist2split_list( Sequence *S, Sequence *TS)
{
//Displays the list of all the splits of every tree
//Does not cout them
NT_node *T;
int n=0,nseq, a, c;

int *used;

char *split_file, *sorted_split_file;
char *buf=NULL, *ref_spl=NULL;
char *spl;
char *fname;
char **wl;
FILE *fp;
char file_list[100000];
int IsMainT=0;
int InMainT=0;
split_file=vtmpnam (NULL);
sorted_split_file =vtmpnam (NULL);

n=S->nseq;
used=(int*)vcalloc (n, sizeof (int));
T=read_tree_list (S);

if (!TS)
{
Sequence *S1=tree2seq(T[0], NULL);
char *tmp1=vtmpnam (NULL);
char *tmp2=vtmpnam(NULL);
fp=vfopen (tmp1, "w");
for (a=0; a< S1->nseq; a++)
{
fprintf (fp,">%s\n", S1->name[a]);
}
vfclose (fp);
printf_system ( "cat %s | sort > %s", tmp1, tmp2);
TS=get_fasta_sequence (tmp2, NULL);
}
for ( a=0; a< S->nseq; a++)
{
T[a]=prune_tree (T[a], TS);
T[a]=recode_tree (T[a], TS);
display_splits (T[a], TS,stdout, S->name[a], S->file[0], ",");
}
myexit (0);
}

int treelist2split_count( Sequence *S, Sequence *TS)
{
NT_node *T;
int n=0,nseq, a, c;
Expand All @@ -6483,6 +6540,7 @@ int treelist2splits( Sequence *S, Sequence *TS)
char file_list[100000];
int IsMainT=0;
int InMainT=0;

split_file=vtmpnam (NULL);
sorted_split_file =vtmpnam (NULL);

Expand Down Expand Up @@ -6520,7 +6578,7 @@ int treelist2splits( Sequence *S, Sequence *TS)

T[a]=prune_tree (T[a], TS);
T[a]=recode_tree (T[a], TS);
display_splits (T[a], TS,fp, S->name[a]);
display_splits (T[a], TS,fp, S->name[a], S->file[0], " ");
}

vfclose (fp);
Expand Down Expand Up @@ -6580,8 +6638,8 @@ int treelist2splits( Sequence *S, Sequence *TS)
}

n-=InMainT;

fprintf ( stdout, "#SPLIT1,%15s,%d,%d,%s,%s,%s\n",S->file[0],((n0>n1)?n1:n0),n,ref_spl,(InMainT==0)?"repl":"tree", (strstr(S->file[0], "_1d_"))?"1d":"3d");
fprintf ( stdout, "#SPLIT1,%15s,%d,%d,%s,%s,%s\n",S->file[0],((n0>n1)?n1:n0),n,ref_spl,(InMainT==0)?"replicate":"original", (strstr(S->file[0], "_3d_"))?"3d":"1d");
fprintf ( stdout, "#SPLIT2: %15s %d\t%d\t%s\t%s\t",S->file[0],((n0>n1)?n1:n0),n,ref_spl, file_list);


Expand Down Expand Up @@ -6624,6 +6682,7 @@ int treelist2splits( Sequence *S, Sequence *TS)
myexit (0);
}


int treelist2splits_old ( Sequence *S, Sequence *TS)
{
NT_node *T;
Expand Down
4 changes: 3 additions & 1 deletion lib/io_lib/tree_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ int count_groups( Sequence *S, char *s);
Split ** count_splits( NT_node RT, Sequence *S, char *s);
NT_node *treelist2prune_treelist (Sequence *S, Sequence *TS, FILE *out);
int** treelist2groups (Sequence *S, Sequence *ST, char *depth, FILE *out);
int treelist2splits (Sequence *S, Sequence *ST);
int treelist2split_list (Sequence *S, Sequence *ST);
int treelist2split_count (Sequence *S, Sequence *ST);

int treelist2leafgroup ( Sequence *S, Sequence *TS, char *taxon);
int ***tree2dist ( NT_node T, Sequence *S, int ***d);
int treelist2frame (Sequence *S, Sequence *TS);
Expand Down
19 changes: 15 additions & 4 deletions lib/util_lib/reformat.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,15 @@ int seq_reformat ( int argc, char **in_argv)


fprintf ( stdout, "\n +treelist2seq.C.......Reports the species observed in C%% of the trees");
fprintf ( stdout, "\n +treelist2splits......List and counts all the splits in a list of trees");
fprintf ( stdout, "\n +treelist2split_count.List and counts all the splits in a list of trees");
fprintf ( stdout, "\n ......................splits can be restricted to a list of sequences provided via -in2");
fprintf ( stdout, "\n ......................if providing a concatenated trees via -in use -input=treelist");
fprintf ( stdout, "\n ......................if no sequence provided seqnames are extracted and sorted alphbetically");
fprintf ( stdout, "\n ......................splits are coded in split 1 and 0 with the first sequences being int split1");
fprintf ( stdout, "\n ......................the first tree is assumed to the the original (ori) and the others (rep)");
fprintf ( stdout, "\n +treelist2split_list..List and counts all the splits in a list of trees");
fprintf ( stdout, "\n ......................see tree_list2split_count. Same rules apply");

fprintf ( stdout, "\n +treelist2dmat.......outputs a distance matrix for a list of trees");

fprintf ( stdout, "\n +tree_compute n s....Computes a tree using the MSA provided with -in");
Expand Down Expand Up @@ -11569,12 +11576,16 @@ void modify_data (Sequence_data_struc *D1in, Sequence_data_struc *D2in, Sequenc
treelist2leafgroup (D1->S, (D2)?D2->S:NULL, ACTION(1));
myexit (0);
}
else if ( strm(action, "treelist2splits"))
else if ( strm(action, "treelist2splits") || strm(action, "treelist2split_count"))
{
if (D1->T)D1->S=add_file2file_list ((D1->T)->file, NULL);
treelist2splits (D1->S, (D2)?D2->S:NULL);
treelist2split_count (D1->S, (D2)?D2->S:NULL);
}
else if (strm(action, "treelist2split_list"))
{
if (D1->T)D1->S=add_file2file_list ((D1->T)->file, NULL);
treelist2split_list (D1->S, (D2)?D2->S:NULL);
}

else if ( strm(action, "treelist2dmat"))
{
treelist2dmat (D1->S);
Expand Down
2 changes: 1 addition & 1 deletion lib/version/build_version.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
43
44
2 changes: 1 addition & 1 deletion lib/version/github.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* master 811bb88 undocumented beta release tested with beta tests
* master af89940 undocumented beta release tested with beta tests
2 changes: 1 addition & 1 deletion lib/version/version_number.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Version_13.45.43.811bb88
Version_13.45.44.af89940

0 comments on commit 71ca9cd

Please sign in to comment.