Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
process_scripts
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
NGS CLIA Lab
process_scripts
Commits
aa2351e8
Commit
aa2351e8
authored
6 years ago
by
Brandi Cantarel
Browse files
Options
Downloads
Patches
Plain Diff
updating statanal
parent
7adcb10c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
diff_exp/geneabundance.sh
+1
-1
1 addition, 1 deletion
diff_exp/geneabundance.sh
genect_rnaseq/concat_ctsum.pl
+45
-0
45 additions, 0 deletions
genect_rnaseq/concat_ctsum.pl
genect_rnaseq/statanal.sh
+43
-0
43 additions, 0 deletions
genect_rnaseq/statanal.sh
with
89 additions
and
1 deletion
diff_exp/geneabundance.sh
+
1
−
1
View file @
aa2351e8
...
...
@@ -42,5 +42,5 @@ module load subread/1.6.1 stringtie/1.3.2d-intel
featureCounts
-s
$stranded
-M
--fraction
-J
--ignoreDup
-T
$SLURM_CPUS_ON_NODE
-p
-g
gene_name
-a
${
gtf
}
-o
${
pair_id
}
.cts
${
sbam
}
mkdir
${
pair_id
}
_stringtie
cd
${
pair_id
}
_stringtie
stringtie ../
${
sbam
}
-p
$SLURM_CPUS_ON_NODE
-G
../
${
gtf
}
-B
-e
-o
denovo.gtf
-A
../
${
pair_id
}
.fpkm.txt
stringtie ../
${
sbam
}
-p
$SLURM_CPUS_ON_NODE
-G
${
gtf
}
-B
-e
-o
denovo.gtf
-A
../
${
pair_id
}
.fpkm.txt
This diff is collapsed.
Click to expand it.
genect_rnaseq/concat_ctsum.pl
0 → 100644
+
45
−
0
View file @
aa2351e8
#!/usr/bin/perl -w
#merge_tables.pl
use
Getopt::
Long
qw(:config no_ignore_case no_auto_abbrev)
;
use
File::
Basename
;
my
%opt
=
();
my
$results
=
GetOptions
(
\
%opt
,'
outdir|o=s
','
help|h
');
$opt
{
outdir
}
=
'
./
'
unless
(
$opt
{
outdir
});
my
@files
=
@ARGV
;
foreach
$file
(
@files
)
{
chomp
(
$file
);
open
IN
,
"
<
$file
"
or
die
$!
;
$fname
=
basename
(
$file
);
my
$sample
=
(
split
(
/\./
,
$fname
))[
0
];
$samps
{
$sample
}
=
1
;
my
$head
=
<
IN
>
;
chomp
(
$head
);
my
@colnames
=
split
(
/\t/
,
$head
);
while
(
my
$line
=
<
IN
>
)
{
chomp
(
$line
);
my
@row
=
split
(
/\t/
,
$line
);
my
$gene
=
$row
[
0
];
my
$ct
=
$row
[
-
1
];
$cts
{
$gene
}{
$sample
}
=
$ct
;
}
close
IN
;
}
open
OUT
,
"
>
$opt
{outdir}
\
/countFeature.txt
"
or
die
$!
;
my
@samples
=
sort
{
$a
cmp
$b
}
keys
%samps
;
print
OUT
join
("
\t
",'
FeatureCtType
',
@samples
),"
\n
";
foreach
$gene
(
keys
%cts
)
{
my
@line
;
foreach
$sample
(
@samples
)
{
unless
(
$cts
{
$gene
}{
$sample
})
{
$cts
{
$gene
}{
$sample
}
=
0
;
}
push
@line
,
$cts
{
$gene
}{
$sample
};
}
print
OUT
join
("
\t
",
$gene
,
@line
),"
\n
";
}
close
OUT
;
This diff is collapsed.
Click to expand it.
genect_rnaseq/statanal.sh
0 → 100644
+
43
−
0
View file @
aa2351e8
#!/bin/bash
#rnaseqalign.sh
usage
()
{
echo
"-h Help documentation for hisat.sh"
echo
"-d --DEA"
echo
"Example: bash statanal.sh"
exit
1
}
OPTIND
=
1
# Reset OPTIND
while
getopts
:d:h opt
do
case
$opt
in
d
)
dea
=
$OPTARG
;;
h
)
usage
;;
esac
done
shift
$((
$OPTIND
-
1
))
# Check for mandatory options
if
[[
-z
$SLURM_CPUS_ON_NODE
]]
then
SLURM_CPUS_ON_NODE
=
1
fi
source
/etc/profile.d/modules.sh
perl
$baseDir
/scripts/concat_cts.pl
-o
./
*
.cts
perl
$baseDir
/scripts/concat_fpkm.pl
-o
./
*
.fpkm.txt
perl
$baseDir
/scripts/concat_ctsum.pl
-o
./
*
.cts.summary
cp
design.txt design.shiny.txt
cp
geneset.gmt geneset.shiny.gmt
if
[[
$dea
==
'skip'
]]
then
touch
empty.png
touch
bg.rda
else
module load R/3.2.1-intel
Rscript
$baseDir
/scripts/dea.R
Rscript
$baseDir
/scripts/build_ballgown.R
*
_stringtie
perl
$baseDir
/scripts/concat_edgeR.pl
*
.edgeR.txt
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment