Skip to content

Commit

Permalink
Merge pull request #10 from rmillikin/master
Browse files Browse the repository at this point in the history
sum feature group separate protein variable
  • Loading branch information
rmillikin authored Jul 19, 2017
2 parents 774e2c5 + 57b00e7 commit 753489a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion FlashLFQ/FlashLFQSummedFeatureGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ namespace FlashLFQ
public class FlashLFQSummedFeatureGroup
{
public readonly string BaseSequence;
public readonly string ProteinGroup;
public readonly double[] intensitiesByFile;
public readonly string[] detectionType;
public static string[] files;

public FlashLFQSummedFeatureGroup(string baseSeq, double[] intensitiesByFile, string[] detectionType)
public FlashLFQSummedFeatureGroup(string baseSeq, string proteinGroup, double[] intensitiesByFile, string[] detectionType)
{
BaseSequence = baseSeq;
ProteinGroup = proteinGroup;
this.intensitiesByFile = intensitiesByFile;
this.detectionType = detectionType;
}
Expand All @@ -36,6 +38,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();

sb.Append("" + BaseSequence + '\t');
sb.Append("" + ProteinGroup + '\t');
sb.Append(string.Join("\t", intensitiesByFile) + '\t');
sb.Append(string.Join("\t", detectionType));

Expand Down
2 changes: 1 addition & 1 deletion FlashLFQ/FlashLfqEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ public List<FlashLFQSummedFeatureGroup> SumFeatures(IEnumerable<FlashLFQFeature>
identificationType[i] = "";
}

returnList.Add(new FlashLFQSummedFeatureGroup(sequence.Key + "\t" + sequence.Value.First().identifyingScans.First().proteinGroup.proteinGroupName, intensitiesByFile, identificationType));
returnList.Add(new FlashLFQSummedFeatureGroup(sequence.Key, sequence.Value.First().identifyingScans.First().proteinGroup.proteinGroupName, intensitiesByFile, identificationType));
}

return returnList.OrderBy(p => p.BaseSequence).ToList();
Expand Down

0 comments on commit 753489a

Please sign in to comment.