/usr/lib/R/site-library/IRanges/include/IRanges_interface.h is in r-bioc-iranges 1.22.10-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 | /*****************************************************************************
IRanges C interface: prototypes
-------------------------------
The IRanges C interface is split in 2 files:
1. IRanges_defines.h (in this directory): contains the typedefs and
defines of the interface.
2. IRanges_interface.h (this file): contains the prototypes of the
IRanges C routines that are part of the interface.
*****************************************************************************/
#include "IRanges_defines.h"
/*
* Low-level sorting utilities.
* (see sort_utils.c)
*/
void sort_int_array(
int *x,
int nelt,
int desc
);
void get_order_of_int_array(
const int *x,
int nelt,
int desc,
int *out,
int out_shift
);
void get_order_of_int_pairs(
const int *a,
const int *b,
int nelt,
int desc,
int *out,
int out_shift
);
void get_order_of_int_quads(
const int *a,
const int *b,
const int *c,
const int *d,
int nelt,
int desc,
int *out,
int out_shift
);
/*
* Hash table management.
* (see hash_utils.c)
*/
struct htab new_htab(int n);
int get_hbucket_val(
const struct htab *htab,
int bucket_idx
);
void set_hbucket_val(
struct htab *htab,
int bucket_idx,
int val
);
/*
* Low-level manipulation of the Auto-Extending buffers.
* (see AEbufs.c)
*/
int get_new_buflength(int buflength);
int IntAE_get_nelt(const IntAE *int_ae);
int IntAE_set_nelt(
IntAE *int_ae,
int nelt
);
void IntAE_set_val(
const IntAE *int_ae,
int val
);
IntAE new_IntAE(
int buflength,
int nelt,
int val
);
void IntAE_insert_at(
IntAE *int_ae,
int at,
int val
);
void IntAE_append(
IntAE *int_ae,
const int *newvals,
int nnewval
);
void IntAE_delete_at(
IntAE *int_ae,
int at
);
void IntAE_shift(
const IntAE *int_ae,
int shift
);
void IntAE_sum_and_shift(
const IntAE *int_ae1,
const IntAE *int_ae2,
int shift
);
void IntAE_append_shifted_vals(
IntAE *int_ae,
const int *newvals,
int nnewval,
int shift
);
void IntAE_qsort(
const IntAE *int_ae,
int desc
);
void IntAE_delete_adjdups(IntAE *int_ae);
SEXP new_INTEGER_from_IntAE(const IntAE *int_ae);
IntAE new_IntAE_from_INTEGER(SEXP x);
IntAE new_IntAE_from_CHARACTER(
SEXP x,
int keyshift
);
int IntAEAE_get_nelt(const IntAEAE *int_aeae);
int IntAEAE_set_nelt(
IntAEAE *int_aeae,
int nelt
);
IntAEAE new_IntAEAE(
int buflength,
int nelt
);
void IntAEAE_insert_at(
IntAEAE *int_aeae,
int at,
const IntAE *int_ae
);
void IntAEAE_eltwise_append(
const IntAEAE *int_aeae1,
const IntAEAE *int_aeae2
);
void IntAEAE_shift(
const IntAEAE *int_aeae,
int shift
);
void IntAEAE_sum_and_shift(
const IntAEAE *int_aeae1,
const IntAEAE *int_aeae2,
int shift
);
SEXP new_LIST_from_IntAEAE(
const IntAEAE *int_aeae,
int mode
);
IntAEAE new_IntAEAE_from_LIST(SEXP x);
SEXP IntAEAE_toEnvir(
const IntAEAE *int_aeae,
SEXP envir,
int keyshift
);
int RangeAE_get_nelt(const RangeAE *range_ae);
int RangeAE_set_nelt(
RangeAE *range_ae,
int nelt
);
RangeAE new_RangeAE(
int buflength,
int nelt
);
void RangeAE_insert_at(
RangeAE *range_ae,
int at,
int start,
int width
);
int RangeAEAE_get_nelt(const RangeAEAE *range_aeae);
int RangeAEAE_set_nelt(
RangeAEAE *range_aeae,
int nelt
);
RangeAEAE new_RangeAEAE(
int buflength,
int nelt
);
void RangeAEAE_insert_at(
RangeAEAE *range_aeae,
int at,
const RangeAE *range_ae
);
int CharAE_get_nelt(const CharAE *char_ae);
int CharAE_set_nelt(
CharAE *char_ae,
int nelt
);
CharAE new_CharAE(int buflength);
CharAE new_CharAE_from_string(const char *string);
void CharAE_insert_at(
CharAE *char_ae,
int at,
char c
);
void append_string_to_CharAE(
CharAE *char_ae,
const char *string
);
void CharAE_delete_at(
CharAE *char_ae,
int at,
int nelt
);
SEXP new_RAW_from_CharAE(const CharAE *char_ae);
SEXP new_LOGICAL_from_CharAE(const CharAE *char_ae);
int CharAEAE_get_nelt(const CharAEAE *char_aeae);
int CharAEAE_set_nelt(
CharAEAE *char_aeae,
int nelt
);
CharAEAE new_CharAEAE(
int buflength,
int nelt
);
void CharAEAE_insert_at(
CharAEAE *char_aeae,
int at,
const CharAE *char_ae
);
void append_string_to_CharAEAE(
CharAEAE *char_aeae,
const char *string
);
SEXP new_CHARACTER_from_CharAEAE(const CharAEAE *char_aeae);
/*
* SEXP_utils.c
*/
const char *get_classname(SEXP x);
/*
* int_utils.c
*/
int check_integer_pairs(
SEXP a,
SEXP b,
const int **a_p,
const int **b_p,
const char *a_argname,
const char *b_argname
);
/*
* Low-level manipulation of Vector objects.
* (see Vector_class.c)
*/
const char *get_List_elementType(SEXP x);
void set_List_elementType(SEXP x, const char *type);
int vector_memcmp(
SEXP x1,
int x1_offset,
SEXP x2,
int x2_offset,
int nelt
);
void vector_memcpy(
SEXP out,
int out_offset,
SEXP in,
int in_offset,
int nelt
);
/*
* Comparing ranges.
* (see Ranges_comparison.c)
*/
int overlap_code(
int x_start,
int x_width,
int y_start,
int y_width
);
int invert_overlap_code(int code);
/*
* Low-level manipulation of IRanges objects.
* (see IRanges_class.c)
*/
SEXP get_IRanges_start(SEXP x);
SEXP get_IRanges_width(SEXP x);
SEXP get_IRanges_names(SEXP x);
int get_IRanges_length(SEXP x);
IRanges_holder hold_IRanges(SEXP x);
int get_length_from_IRanges_holder(const IRanges_holder *x_holder);
int get_width_elt_from_IRanges_holder(const IRanges_holder *x_holder, int i);
int get_start_elt_from_IRanges_holder(const IRanges_holder *x_holder, int i);
int get_end_elt_from_IRanges_holder(const IRanges_holder *x_holder, int i);
SEXP get_names_elt_from_IRanges_holder(const IRanges_holder *x_holder, int i);
IRanges_holder get_linear_subset_from_IRanges_holder(const IRanges_holder *x_holder, int offset, int length);
void set_IRanges_names(SEXP x, SEXP names);
void copy_IRanges_slots(SEXP x, SEXP x0);
SEXP new_IRanges(const char *classname, SEXP start, SEXP width, SEXP names);
SEXP new_IRanges_from_RangeAE(const char *classname, const RangeAE *range_ae);
SEXP new_list_of_IRanges_from_RangeAEAE(const char *element_type, const RangeAEAE *range_aeae);
SEXP alloc_IRanges(const char *classname, int length);
/*
* Low-level manipulation of Grouping objects.
* (see Grouping_class.c)
*/
SEXP get_H2LGrouping_high2low(SEXP x);
SEXP get_H2LGrouping_low2high(SEXP x);
SEXP get_Partitioning_names(SEXP x);
SEXP get_PartitioningByEnd_end(SEXP x);
SEXP new_PartitioningByEnd(const char *classname, SEXP end, SEXP names);
/*
* Low-level manipulation of SimpleList objects.
* (see SimpleList_class.c)
*/
SEXP new_SimpleList(const char *classname, SEXP listData);
/*
* Low-level manipulation of DataFrame objects.
* (see DataFrame_class.c)
*/
SEXP new_DataFrame(const char *classname, SEXP vars, SEXP rownames, SEXP nrows);
/*
* Low-level manipulation of CompressedList objects.
* (see CompressedList_class.c)
*/
SEXP get_CompressedList_unlistData(SEXP x);
SEXP get_CompressedList_partitioning(SEXP x);
int get_CompressedList_length(SEXP x);
SEXP get_CompressedList_names(SEXP x);
SEXP new_CompressedList(const char *classname, SEXP unlistData, SEXP partitioning);
/*
* Low-level manipulation of CompressedIRangesList objects.
* (see CompressedIRangesList_class.c)
*/
CompressedIRangesList_holder hold_CompressedIRangesList(SEXP x);
IRanges_holder get_elt_from_CompressedIRangesList_holder(const CompressedIRangesList_holder *x_holder, int i);
/*
* Low-level manipulation of RangedData objects.
* (see RangedData_class.c)
*/
SEXP new_RangedData(const char *classname, SEXP ranges, SEXP values);
/*
* Low-level manipulation of Rle objects.
* (see Rle_class.c)
*/
SEXP seqselect_Rle(SEXP x, const int *start, const int *width, int length);
|