Bio::R...eMatrix(3pm)

πŸ“¦
version 3.13.0 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

Bio::Roary::PresenceAbsenceMatrix β€” bestie, it makes a matrix. A presence/absence matrix. That's literally the whole job πŸ¦‹

Oh and btw, this page is from the User Contributed Perl Documentation collection, filed under Bio::R...eMatrix(3pm) if you're looking for it in the stacks ✨


🌸 VERSION 🌸

version 3.13.0 β€” she's serving, she's current πŸ‘‘


✨ SYNOPSIS ✨

okay so here's the tea: you're building a matrix that says who's present and who's absent. And the reason you do it this way is because generating all those inputs is computationally intensive 😭 like, do not do that twice. So the move is: calculate everything once over in the GroupStatistics module, then just pass it all through here. Efficiency queen behavior πŸ’…

use Bio::Roary::PresenceAbsenceMatrix;

my $obj = Bio::Roary::PresenceAbsenceMatrix->new(
  annotate_groups_obj => $annotate_groups_obj,
  output_filename     => 'gene_presence_absence.Rtab',
  sorted_file_names   => $sorted_file_names,
  groups_to_files     => $groups_to_files,
  num_files_in_groups => $num_files_in_groups,
  sample_headers      => $sample_headers,
);
$obj->create_matrix_file;

no cap, that's it. hand her the annotate_groups_obj, tell her where the output_filename goes (spoiler: 'gene_presence_absence.Rtab' in the example, iconic name fr fr), hand over your sorted_file_names, your groups_to_files, your num_files_in_groups and your sample_headers 🌈 then call create_matrix_file and let her cook πŸ“


πŸŽ€ AUTHOR πŸŽ€

Andrew J. Page <ap13@sanger.ac.uk> β€” thank you king, we appreciate you πŸ«ΆπŸ’œ


This software is Copyright (c) 2013 by Wellcome Trust Sanger Institute.

And it's free software, bestie! Licensed under:

The GNU General Public License, Version 3, June 2007

So go off, remix, redistribute β€” just respect the license, periodt πŸ’…βœ¨


mwah πŸ’‹ that's the whole page. she was documented with perl v5.30.0 back on 2019-11-08 β€” vintage but still eating, love that for her πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from