Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ROCK
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Véronique LEGRAND
ROCK
Commits
1e05fa1a
Commit
1e05fa1a
authored
9 years ago
by
Veronique Legrand
Browse files
Options
Downloads
Patches
Plain Diff
first stuff
parents
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure.ac
+14
-0
14 additions, 0 deletions
configure.ac
src/Makefile.am
+3
-0
3 additions, 0 deletions
src/Makefile.am
src/rock.c
+38
-0
38 additions, 0 deletions
src/rock.c
with
55 additions
and
0 deletions
configure.ac
0 → 100644
+
14
−
0
View file @
1e05fa1a
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
AC_INIT(rock, 1.0)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE()
AC_PROG_CC
AC_CONFIG_FILES(Makefile src/Makefile)
AC_OUTPUT
This diff is collapsed.
Click to expand it.
src/Makefile.am
0 → 100644
+
3
−
0
View file @
1e05fa1a
bin_PROGRAMS
=
rock
bin_SOURCES
=
rock.c
This diff is collapsed.
Click to expand it.
src/rock.c
0 → 100644
+
38
−
0
View file @
1e05fa1a
/*
============================================================================
Name : rock.c
Author : Véronique Legrand
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
#include
<stdio.h>
#include
<stdlib.h>
#include
<fcntl.h>
#include
<unistd.h>
int
main
(
void
)
{
/* 1rst step : read a fastq and compute quality score for each record (PE or single) */
char
*
fq_pe1
=
"../data/LM201200065_S106_R1.TM.fq"
;
char
*
fq_pe2
=
"../data/LM201200065_S106_R2.TM.fq"
;
char
*
fq_s
=
"../data/LM201200065_S106_RS.TM.fq"
;
size_t
bufsize
=
10240
;
char
buf
[
bufsize
];
mode_t
mode
=
S_IRUSR
|
S_IWUSR
|
S_IRGRP
|
S_IROTH
;
/* Let's start with the easiest case : single reads. */
int
f_single
=
open
(
fq_s
,
O_RDONLY
,
mode
);
/* for each read, we want : offset, filenb, total quality score. */
int
nread
=
read
(
f_single
,
buf
,
bufsize
);
while
(
nread
!=
0
)
{
nread
=
read
(
f_single
,
buf
,
bufsize
);
printf
(
"%s"
,
buf
);
}
close
(
f_single
);
return
EXIT_SUCCESS
;
}
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