Skip to content

Commit

Permalink
Merge pull request #50 from t0mdavid-m/new_release
Browse files Browse the repository at this point in the history
New release
  • Loading branch information
t0mdavid-m authored Sep 23, 2024
2 parents 884db1d + c15f206 commit 9f471db
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 24 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js-component/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>openms-streamlit-vue-component</title>
<script type="module" crossorigin src="./assets/index-fe61c0a4.js"></script>
<link rel="stylesheet" href="./assets/index-ca1bcd20.css">
<script type="module" crossorigin src="./assets/index-858fd570.js"></script>
<link rel="stylesheet" href="./assets/index-944dcd57.css">
</head>
<body>
<div id="app"></div>
Expand Down
12 changes: 8 additions & 4 deletions pages/FLASHTaggerViewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ def sendDataToJS(selected_data, layout_info_per_exp, grid_key='flash_viewer_grid
mod_masses = [float(m) for m in str(row['ModMass']).split(';')]
mod_starts = [int(float(s)) for s in str(row['ModStart']).split(';')]
mod_ends = [int(float(s)) for s in str(row['ModEnd']).split(';')]
mod_labels = [s[:-1].replace(',', '; ') for s in str(row['ModID']).split(';')]
if pd.isna(row['ModID']):
mod_labels = [''] * row['ModCount']
else:
mod_labels = [s[:-1].replace(',', '; ') for s in str(row['ModID']).split(';')]
print(mod_labels)
else:
mod_masses = []
mod_starts = []
Expand All @@ -142,13 +146,13 @@ def sendDataToJS(selected_data, layout_info_per_exp, grid_key='flash_viewer_grid
)

sequence_data[pid]['sequence'] = list(sequence)
sequence_data[pid]['proteoform_start'] = start_index
sequence_data[pid]['proteoform_end'] = end_index
sequence_data[pid]['proteoform_start'] = proteoform_start - 1
sequence_data[pid]['proteoform_end'] = proteoform_end - 1
sequence_data[pid]['computed_mass'] = row['ProteoformMass']
sequence_data[pid]['theoretical_mass'] = remove_ambigious(AASequence.fromString(sequence)).getMonoWeight()

sequence_data[pid]['modifications'] = [
{
# Modfications are zero based
'start' : s - 1,
'end' : e - 1,
'mass_diff' : m,
Expand Down

0 comments on commit 9f471db

Please sign in to comment.