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

Cystag #574

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Cystag #574

wants to merge 7 commits into from

Conversation

jgpavek
Copy link

@jgpavek jgpavek commented May 23, 2022

No description provided.

* Hence we do this correction that adds 0, 1, 2, or 3 to correct for the -1, -2, -3 that it will “likely” miss by.
*/

double neuCodeCorrection = Math.Round((this.lysine_count * 0.1667 - 0.4), 0, MidpointRounding.AwayFromZero) * Lollipop.MONOISOTOPIC_UNIT_MASS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cystag correction?

@@ -69,8 +92,9 @@ public static double calculate_sum_intensity_olcs(List<ChargeState> light_or_hea

public void set_accepted()
{
accepted = lysine_count >= Sweet.lollipop.min_lysine_ct && lysine_count <= Sweet.lollipop.max_lysine_ct
&& intensity_ratio >= Convert.ToDouble(Sweet.lollipop.min_intensity_ratio) && intensity_ratio <= Convert.ToDouble(Sweet.lollipop.max_intensity_ratio);
accepted = (((lysine_count >= Sweet.lollipop.min_lysine_ct && lysine_count <= Sweet.lollipop.max_lysine_ct) && Sweet.lollipop.neucode_labeled) ||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cys

@@ -238,6 +238,7 @@ private void nUD_Missed_Monos_ValueChanged(object sender, EventArgs e)
private void nUD_Missed_Ks_ValueChanged(object sender, EventArgs e)
{
Sweet.lollipop.maximum_missed_lysines = Convert.ToInt32(nUD_Missed_Ks.Value);
Sweet.lollipop.maximum_missed_cysteines = Convert.ToInt32(nUD_Missed_Ks.Value);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missed ks?

@@ -93,8 +93,8 @@
<ColumnDefinition Width="1*"></ColumnDefinition>
<ColumnDefinition Width="1.5*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Label Margin="0 0 0 0" Height="23" Grid.Column="0" Grid.Row="0" FontSize="11">K-Min</Label>
<Label Margin="0,0,0,0" Height="23" Grid.Column="0" Grid.Row="1" FontSize="11">K-Max</Label>
<TextBlock x:Name="AA_min_textblock" Text="K-Min" Margin="0 0 0 0" Height="23" Grid.Column="0" Grid.Row="0" FontSize="11" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K?


if(cystag_labeled)
{
aaMasses.Add('C', 325.16816);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems weird
image

MT Common Variable
TG C
PP Anywhere.
CF C1 H2 S1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this formula is wrong if you want it to be negative
C-1 H-2 S-1

ID MMTS Instead of Carbamidomethyl
MT Common Variable
TG C
PP Anywhere.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you have CF for this?

this.lysine_count = Math.Abs(Convert.ToInt32(Math.Round((neuCodeHeavy.weighted_monoisotopic_mass - firstCorrection) / Lollipop.NEUCODE_LYSINE_MASS_SHIFT, 0, MidpointRounding.AwayFromZero)));
if(Sweet.lollipop.neucode_labeled)
{
this.lysine_count = Math.Abs(Convert.ToInt32(Math.Round((neuCodeHeavy.weighted_monoisotopic_mass - firstCorrection) / Lollipop.NEUCODE_LYSINE_MASS_SHIFT, 0, MidpointRounding.AwayFromZero)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neucode lysine mass shift?

* Hence we do this correction that adds 0, 1, 2, or 3 to correct for the -1, -2, -3 that it will “likely” miss by.
*/

double neuCodeCorrection = Math.Round((this.lysine_count * 0.1667 - 0.4), 0, MidpointRounding.AwayFromZero) * Lollipop.MONOISOTOPIC_UNIT_MASS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably this needs to be updated

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

Successfully merging this pull request may close these issues.

2 participants