This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | library(dplyr) | |
| library(tibble) | |
| data = read.csv("gene_count_matrix.csv", row.names = "gene_id") | |
| head(data) | |
| log_data = log(data) | |
| head(log_data) | |
| log_data = log_data %>% | |
| rownames_to_column('gene') %>% | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| // Function to compare suffixes for qsort | |
| int suffix_compare(const void *a, const void *b) { | |
| return strcmp(*(const char **)a, *(const char **)b); | |
| } | |
| // Function to construct the suffix array | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python3 | |
| # Usage | |
| # python3 filter_fasta_by_list_of_headers.py [fasta.file] [header.list] > [output.file] | |
| from Bio import SeqIO | |
| import sys | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env python3 | |
| import argparse | |
| import csv | |
| import natsort | |
| import pandas | |
| # Parse arguments | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument( | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Define a function to extract the value of a specified attribute | |
| def extract_attribute_value(line, attribute): | |
| start = line.find(attribute) + len(attribute) + 2 # +2 to skip the attribute name and the initial space | |
| end = line.find('";', start) | |
| return line[start:end] | |
| # Read the input file | |
| input_filename = "trial.gtf" | |
| output_filename = "output_trial.gtf" |