Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readable Log File for ReadCount Model #72

Open
EvaLiyt opened this issue Mar 2, 2025 · 1 comment
Open

Readable Log File for ReadCount Model #72

EvaLiyt opened this issue Mar 2, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@EvaLiyt
Copy link
Collaborator

EvaLiyt commented Mar 2, 2025

The log file should be readable when opened in Excel.

@EvaLiyt EvaLiyt added the enhancement New feature or request label Mar 2, 2025
@kche309
Copy link
Collaborator

kche309 commented Mar 11, 2025

Add an option in LPhy for writing out all random variables with dimension > 1 as individual files.
https://github.com/LinguaPhylo/linguaPhylo

Variables that are a list or matrix should be written in their own log file with the "name of the variable" as the file prefix. Suggested format "variableName_sampleNumber.log"

Lists:
One line per element in variable log file.
For example a discrete variable x could have the log file x.log with

10
25
8
3

2D Matrix:
Each row as a new line, where columns are "comma" delimited.
For example, a variable x where there are two dimensions

2, 2, 3, 4
1, 1, 1, 2
3, 2, 2, 4

3D Matrix:
Same as 2D matrix, but each element is also a list with a "semicolon" delimiter.
For example, a read count matrix r with 2 cells and 3 sites, where each element is a list of nucleotide counts for A:C:G:T

10:2:0:0, 10:15:0:0, 0:1:2:8  
20:0:5:0, 18:3:0:1, 0:0:4:5 

Note: 4 Dimensions and beyond - each dimension will need their own delimiter. To be added when use case appears in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants