libgunshotmatch.comparison¶
Comparison between projects and unknowns.
The two submodules, projects and unknowns,
provide identical APIs with different internals to handle reference projects (containing two or more repeats)
and unknown samples (from a single datafile).
New in version 0.8.0.
Functions:
|
Align multiple projects and/or unknowns. |
|
Pad the consolidated peak lists in each project/unknown, from the given between-project alignment. |
-
align_projects(projects=(), unknowns=(), D=2.5, gap=0.3)[source]¶ Align multiple projects and/or unknowns.
- Parameters
- Return type
Changed in version 0.9.0:Added
Dandgaparguments.projectsandunknownscan now be a singleProject.
-
get_padded_peak_lists(alignment, projects=(), unknowns=())[source]¶ Pad the consolidated peak lists in each project/unknown, from the given between-project alignment.
- Parameters
Changed in version 0.9.0:
projectsandunknownscan now be a singleProject.- Return type
Tuple[List[MutableSequence[Optional[ConsolidatedPeak]]],List[MutableSequence[Optional[ConsolidatedPeak]]]]
libgunshotmatch.comparison.projects¶
Comparison between projects.
Functions:
|
Filter peaks from a project’s |
|
Returns a list of consolidated peaks for the project, based on the between-project alignment. |
-
filter_alignment_to_consolidate(project)[source]¶ Filter peaks from a project’s
alignmentto only those which survived theconsolidateprocess.
-
get_padded_peak_list(project, alignment_rts)[source]¶ Returns a list of consolidated peaks for the project, based on the between-project alignment.
- Parameters
project (
Project)alignment_rts (
DataFrame) – Pandas DataFrame giving retention times for the peak alignment. The output ofget_peak_alignment().
- Return type
libgunshotmatch.comparison.unknowns¶
Comparison between project(s) and unknowns.
Functions:
|
Filter peaks from an unknown’s |
|
Returns a list of consolidated peaks for the unknown sample, based on the between-project alignment. |
-
filter_alignment_to_consolidate(unknown)[source]¶ Filter peaks from an unknown’s
alignmentto only those which survived theconsolidateprocess.
-
get_padded_peak_list(unknown, alignment_rts)[source]¶ Returns a list of consolidated peaks for the unknown sample, based on the between-project alignment.
- Parameters
unknown (
Project)alignment_rts (
DataFrame) – Pandas DataFrame giving retention times for the peak alignment. The output ofget_peak_alignment().
- Return type