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

Vdb 5863 #1007

Open
wants to merge 3 commits into
base: VDB-5845
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
4 changes: 3 additions & 1 deletion test/test-tools/qa-stats/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,16 @@ if( NOT WIN32 )
SKIP_REGULAR_EXPRESSION "^Skipped"
)

# parsing fasta/fastq
file(GLOB INPUTS input/*.fast[aq])
foreach(i ${INPUTS})
get_filename_component(filename ${i} NAME)
add_test( NAME Test_qa_stats_${filename}
COMMAND sh -c "${BINDIR}/qa-stats ${i} 1>actual/${filename}.stdout 2>actual/${filename}.stderr"
COMMAND "./runtestcase.sh" "${BINDIR}/qa-stats ${i}" "." Test_qa_stats_${filename}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
endforeach()

# fingerprinting
add_test( NAME Test_qa_stats_Finger_1
COMMAND "./runtestcase.sh" "${BINDIR}/qa-stats input/1.1.fastq --fingerprint" "." Test_qa_stats_Finger_1
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
Expand Down
162 changes: 162 additions & 0 deletions test/test-tools/qa-stats/expected/Test_qa_stats_001.R1.fastq.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"total": {
"reads": {
"count": 4,
"biological": 4,
"technical": 0
},
"bases": [
{
"base": "N",
"biological": 4
},
{
"base": "W",
"biological": 56
},
{
"base": "S",
"biological": 44
}
],
"spots": [
{
"nreads": 1,
"total": 4,
"biological": 4,
"no-biological": 0,
"technical": 0,
"no-technical": 4
}
],
"spot-layouts": [
{
"descriptor": "26BF",
"count": 4
}
],
"spectra": {
"W": [
{
"length": 0,
"power": 0.270833
},
{
"length": 1,
"power": 0.208333
},
{
"length": 2,
"power": 0.145833
},
{
"length": 3,
"power": 0.166667
},
{
"length": 4,
"power": 0.125
},
{
"length": 6,
"power": 0.0208333
},
{
"length": 7,
"power": 0.0416667
},
{
"length": 8,
"power": 0.0208333
}
],
"S": [
{
"length": 0,
"power": 0.277778
},
{
"length": 1,
"power": 0.138889
},
{
"length": 2,
"power": 0.25
},
{
"length": 3,
"power": 0.111111
},
{
"length": 4,
"power": 0.0833333
},
{
"length": 5,
"power": 0.0277778
},
{
"length": 6,
"power": 0.0277778
},
{
"length": 7,
"power": 0.0277778
},
{
"length": 10,
"power": 0.0277778
},
{
"length": 14,
"power": 0.0277778
}
],
"S-W": [
{
"length": 0,
"power": 0.574468
},
{
"length": 1,
"power": 0.212766
},
{
"length": 2,
"power": 0.12766
},
{
"length": 3,
"power": 0.0425532
},
{
"length": 4,
"power": 0.0212766
},
{
"length": 5,
"power": 0.0212766
}
],
"K-M": [
{
"length": 0,
"power": 0.434783
},
{
"length": 1,
"power": 0.413043
},
{
"length": 2,
"power": 0.130435
},
{
"length": 5,
"power": 0.0217391
}
]
},
"references": []
}
}
142 changes: 142 additions & 0 deletions test/test-tools/qa-stats/expected/Test_qa_stats_003.R1.fastq.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
{
"total": {
"reads": {
"count": 2,
"biological": 2,
"technical": 0
},
"bases": [
{
"base": "N",
"biological": 2
},
{
"base": "W",
"biological": 25
},
{
"base": "S",
"biological": 25
}
],
"spots": [
{
"nreads": 1,
"total": 2,
"biological": 2,
"no-biological": 0,
"technical": 0,
"no-technical": 2
}
],
"spot-layouts": [
{
"descriptor": "26BF",
"count": 2
}
],
"spectra": {
"W": [
{
"length": 0,
"power": 0.238095
},
{
"length": 1,
"power": 0.142857
},
{
"length": 2,
"power": 0.238095
},
{
"length": 3,
"power": 0.190476
},
{
"length": 4,
"power": 0.047619
},
{
"length": 6,
"power": 0.047619
},
{
"length": 7,
"power": 0.0952381
}
],
"S": [
{
"length": 0,
"power": 0.380952
},
{
"length": 1,
"power": 0.142857
},
{
"length": 2,
"power": 0.238095
},
{
"length": 3,
"power": 0.0952381
},
{
"length": 5,
"power": 0.047619
},
{
"length": 7,
"power": 0.047619
},
{
"length": 14,
"power": 0.047619
}
],
"S-W": [
{
"length": 0,
"power": 0.333333
},
{
"length": 1,
"power": 0.222222
},
{
"length": 2,
"power": 0.277778
},
{
"length": 3,
"power": 0.0555556
},
{
"length": 4,
"power": 0.0555556
},
{
"length": 5,
"power": 0.0555556
}
],
"K-M": [
{
"length": 0,
"power": 0.535714
},
{
"length": 1,
"power": 0.392857
},
{
"length": 2,
"power": 0.0714286
}
]
},
"references": []
}
}
Loading