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

RNA seq analysis - Aminata NDIAYE #7

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30,494 changes: 30,494 additions & 0 deletions analysis.01/DESeq_analysis.txt

Large diffs are not rendered by default.

824 changes: 824 additions & 0 deletions analysis.01/Differentially_expressed_genes.txt

Large diffs are not rendered by default.

Binary file added analysis.01/Figures/Dispersion_estimation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added analysis.01/Figures/MA-plot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions analysis.01/FilterPval.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/perl
###################
#
# Written by Aminata NDIAYE
# This script take as input a tab separated matrix wich contains results from DESeq analysis.
# It filters the input matrix and outputs a file with tab separated columns describing gene deferentially expressed with p-adj < 0.01
#
#
####################


if (scalar @ARGV < 2)
{
print "\n\nUsage : perl FilterPval.pl input_matrix_file output_file \n\n";
exit;
}

#~~~~~~~~Arguments settings
my $input_matrix_file = $ARGV[0];
my $output_file = $ARGV[1];


#~~~~~~~~Opening output file for writing in .txt format
open OUTPUT, '>', "$output_file.txt" or die "Cannot open $output_file\n";

#~~~~~~~~Set output file headers.
printf OUTPUT ("%-20s %-20s\n", "Gene", "P-adj");

#~~~~~~~~Opening input file for reading then filter according to p-adj and output result in a .txt format
open my $file, '<', $input_matrix_file or die "Cannot open $input_matrix_file\n";
my @list_lines;
while (my $line = <$file>)
{
chomp $line;
next if($line =~ m/^"base"/);
push @list_lines, $line;
}

foreach my $list_line (@list_lines)
{
my @attributes = split(/ /,$list_line);
my $padj = $attributes[6];
if (($padj < 0.01) and ($padj ne "NA"))
{
printf OUTPUT ("%-20s %-20s\n", "$attributes[0]", "$attributes[6]");
}
}

close(OUTPUT);
close($file);
Loading