Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DIA augmentation
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Léo Schneider
DIA augmentation
Commits
c819fbdb
Commit
c819fbdb
authored
4 months ago
by
Schneider Leo
Browse files
Options
Downloads
Patches
Plain Diff
df oktoberfest
parent
945682f5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
diann_lib_processing.py
+1
-1
1 addition, 1 deletion
diann_lib_processing.py
identification/result_extraction.py
+17
-0
17 additions, 0 deletions
identification/result_extraction.py
with
18 additions
and
1 deletion
diann_lib_processing.py
+
1
−
1
View file @
c819fbdb
...
@@ -5,7 +5,7 @@ import pyarrow.parquet as pq
...
@@ -5,7 +5,7 @@ import pyarrow.parquet as pq
import
pyarrow
as
pa
import
pyarrow
as
pa
import
torch
import
torch
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
from
loess.loess_1d
import
loess_1d
#
from loess.loess_1d import loess_1d
from
model.model
import
ModelTransformer
from
model.model
import
ModelTransformer
from
config
import
load_args
from
config
import
load_args
...
...
This diff is collapsed.
Click to expand it.
identification/result_extraction.py
0 → 100644
+
17
−
0
View file @
c819fbdb
import
numpy
as
np
import
pandas
as
pd
from
matplotlib_venn
import
venn2
import
matplotlib.pyplot
as
plt
def
compare_id
(
path_1
,
path_2
):
df_1
=
pd
.
read_csv
(
path_1
,
sep
=
'
\t
'
,
encoding
=
'
latin-1
'
)
df_2
=
pd
.
read_csv
(
path_2
,
sep
=
'
\t
'
,
encoding
=
'
latin-1
'
)
peptides_1
=
set
(
df_1
[
'
Stripped.Sequence
'
].
tolist
())
protein_1
=
set
(
df_1
[
'
Protein.Ids
'
].
tolist
())
peptides_2
=
set
(
df_2
[
'
Stripped.Sequence
'
].
tolist
())
protein_2
=
set
(
df_2
[
'
Protein.Ids
'
].
tolist
())
venn2
((
peptides_1
,
peptides_2
),
(
'
custom lib
'
,
'
base lib
'
))
# venn2 works for two sets
plt
.
savefig
(
'
venn_diag.png
'
)
compare_id
(
'
CITFRE_ANA_69/report_custom.tsv
'
,
'
CITFRE_ANA_69/report_first_lib.tsv
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment