RECETOX / recetox-xMSannotator

This is a custom adaptation of the original version of xMSannotator. It is a complete rewrite of the original functionality, following the same program structure.
GNU General Public License v3.0
5 stars 5 forks source link

october: Add adapter to bind functionality of `main` and `master` branches #73

Closed maximskorik closed 2 years ago

maximskorik commented 2 years ago

This PR adds functionality to connect main branch to the master. See #65 for more details.


Example data

Note: there may be some weird rounding in the tables below. This was likely caused by the fact that I had to export data from R to csv to markdown. Inputs: isotopes table peak mz rt mean_intensity module rt_cluster mass_defect mass_number_difference compound adduct molecular_formula
1 242 284.128 379.4 2.15413E8 10 1 128 0.0 12936.0 M+H C17H17NO3
2 243 288.121 379.2 1.46699E7 10 1 12145 4.0 12936.0 M+H C17H17NO3
supplementary data extracted from simple annotation table mz rt Name multiple_match expected_mass monoisotopic_mass
1 284.128 379.4 N-Phenylacetylphenylalanine false 284.12812 283.120843415
Output: Module_RTclust mz time MatchCategory theoretical.mz chemical_ID Name Formula MonoisotopicMass Adduct ISgroup time.y mean_int_vec MD
1 10_1 284.128 379.4 Unique 284.12812 Formula_12936 N-Phenylacetylphenylalanine C17H17NO3 283.120843415 M+H - 379.4 2.15413E8 0.128
2 10_1 288.121 379.2 - Formula_12936 N-Phenylacetylphenylalanine C17H17NO3 M+H_[+4] - 379.2 1.46699E7 0.12145

Closes #65.

maximskorik commented 2 years ago

@hechth, @xtrojak, if you feel like there's a place for improvements/adjustments you can take it from here. Otherwise, I will be able to react to your suggestions and continue work on the adapter tomorrow afternoon.

hechth commented 2 years ago

Thanks, I will have a look today in the afternoon!