Skip to content

Cystag#574

Open
jgpavek wants to merge 7 commits into
smith-chem-wisc:masterfrom
jgpavek:Cystag
Open

Cystag#574
jgpavek wants to merge 7 commits into
smith-chem-wisc:masterfrom
jgpavek:Cystag

Conversation

@jgpavek

@jgpavek jgpavek commented May 23, 2022

Copy link
Copy Markdown

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cystag correction?

{
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cys

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

missed ks?

</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
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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