Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TGM_pipeline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model 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
Show more breadcrumbs
Wei Gu
TGM_pipeline
Commits
17570ea6
Commit
17570ea6
authored
10 years ago
by
Wei Gu
Browse files
Options
Downloads
Patches
Plain Diff
include miRNA and handel -10 in RNASeq
parent
0aa8c28e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tool-data/Rscripts/Create_MarkerSelection_inputfile.pl
+13
-3
13 additions, 3 deletions
tool-data/Rscripts/Create_MarkerSelection_inputfile.pl
with
13 additions
and
3 deletions
tool-data/Rscripts/Create_MarkerSelection_inputfile.pl
+
13
−
3
View file @
17570ea6
...
...
@@ -5,8 +5,8 @@
## Description: Merges the two subset mrna.tsv subset files ##
## and puts the data into the correct format to be used ##
## as input by MarkerSelection.R ##
## Usage: Create_GEX_outputfile.pl
-s1
<subset1_input_file> ##
##
-s2
<subset2_input_file>
-dir
<in/output dir>
##
## Usage: Create_GEX_outputfile.pl <subset1_input_file>
##
## <subset2_input_file> <in/output dir>
<data_filter>
##
## Email: serge.eifes@uni.lu ##
## ##
## This work is licensed under the Creative Commons ##
...
...
@@ -26,7 +26,10 @@ use warnings;
my
$file_1
=
$ARGV
[
0
];
my
$file_2
=
$ARGV
[
1
];
my
$O_file
=
$ARGV
[
2
];
#my $data_filter=$ARGV[3]; #Should be either "TRUE" or "FALSE". All values corresponding to -10 will be set to NA
my
$data_filter
=
"
TRUE
";
# test Wei
die
"
Not allowed argument:
$data_filter
. Value provided should be 'TRUE' or 'FALSE'
"
if
((
$data_filter
ne
"
TRUE
")
&&
(
$data_filter
ne
"
FALSE
"));
my
@A_Subset_files
;
...
...
@@ -73,7 +76,10 @@ foreach my $file (@A_Subset_files){
$Probe_ID_idx
=
$i
;
}
elsif
(
$A_Line
[
$i
]
eq
"
GENE SYMBOL
"){
$Gene_Symbol_idx
=
$i
;
}
}
elsif
(
$A_Line
[
$i
]
eq
"
MIRNA ID
"){
$Probe_ID_idx
=
$i
;
$Gene_Symbol_idx
=
$i
;
}
}
next
;
}
...
...
@@ -83,6 +89,10 @@ foreach my $file (@A_Subset_files){
my
$Probe_ID
=
$A_Line
[
$Probe_ID_idx
];
my
$Gene_Symbol
=
$A_Line
[
$Gene_Symbol_idx
];
if
(
$data_filter
eq
"
TRUE
"){
$Value
=
"
NA
"
if
$Value
==-
10
;
}
$Gene_Symbol
=
"
NA
"
if
(
$Gene_Symbol
eq
"
null
");
my
$Subset
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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