@abmayfield ,
I do not understand your data, especially how time and treatment should be factored into the analysis. I think Tables> Summary using a group and a subgroup will create the table of 0 and 1's you are looking for. My interpretation of what you might be looking for is to use :Protein and :Sample as either the Group and Subgroup, respectively, or vice versa.
Below is a screenshot of using Summary with :Protein as Group and :Same as Subgroup. The JSL follows the picture.
Note that rows where N Rows is greater than 1 represent proteins found in more than 1 sample. and rows where N Rows equals 1 is a proteinn unique to that sample. The column Pattern is a contatenation of the character 0 and 1's and is a numeric representation of "areas" of a venn diagram. Running another table summary by Pattern would reveal how many are shared.
Data Table( "Ofav protein profiling stacked" ) <<
Summary(
Group( :protein ),
N,
Subgroup( :sample ),
Freq( "None" ),
Weight( "None" )
)
Summary by Pattern
Also, Tabulate might be useful to provide the lists of common proteins for each pattern, not just N. This is the result of Tabulate, with Pattern and protein as grouping categories, only a small sample is captured below. This might not be exactly what you need, but hopefully provides some leads to your next steps.